User32BlockInput Method
Blocks keyboard and mouse input events from reaching applications.
Note that only the thread that blocked input can successfully unblock input.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool BlockInput(
bool blockIt
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function BlockInput (
blockIt As Boolean
) As Boolean
Dim blockIt As Boolean
Dim returnValue As Boolean
returnValue = User32.BlockInput(blockIt)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool BlockInput(
bool blockIt
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member BlockInput :
blockIt : bool -> bool
No code example is currently available or this language may not be supported.
- blockIt Boolean
-
The function's purpose.
If this parameter is , keyboard and mouse input events are blocked.
If this parameter is , keyboard and mouse events are unblocked.
Boolean
If the function succeeds, the return value is
.
If input is already blocked, the return value is
.