Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.1 KB

BlockInput.md

File metadata and controls

47 lines (31 loc) · 1.1 KB

Home

Function name : BlockInput

Group: Keyboard Input - Library: user32


Blocks keyboard and mouse input events from reaching applications.


Code examples:

Disabling mouse and keyboard input for the main VFP window (with the app still running)
Splash Screen for the VFP application

Declaration:

BOOL BlockInput(
  BOOL fBlockIt  // block option
);  

FoxPro declaration:

DECLARE INTEGER BlockInput IN user32 INTEGER fBlockIt  

Parameters:

fBlockIt [in] Specifies the function"s purpose. If this parameter is TRUE, keyboard and mouse input events are blocked. If this parameter is FALSE, keyboard and mouse events are unblocked.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

Note that only the thread that blocked the input can successfully unblock it.