[This is preliminary documentation and subject to change.]
Blocks keyboard and mouse events from reaching the raw input thread, and therefore from all applications.
BOOL BlockInput(
BOOL fBlock
);
Returns TRUE if successful or FALSE if input is already blocked.
This function will not interfere with the asynchronous keyboard input state table. This means that calls to the SendInput function while input is blocked will change the asynchronous keyboard input state table.
There are three situations where blocked input will become unblocked:
In all cases, USER must unblock software-blocked input. Since system-critical dialog boxes are system modal, in the latter case, the thread owning the block will not resume execution until the user closes the dialog box.