This call synchronizes access from a keyboard subsystem to the keyboard device driver.
KbdSynch
IOWait (USHORT) - input
Value
KbdSynch blocks all other threads within a session until return from the subsystem to the router. To ensure proper synchronization, KbdSynch should be issued by a keyboard subsystem if it intends to issue a DosDevIOCtl or access dynamically shared data. KbdSynch does not protect globally shared data from threads in other sessions.