网站首页  词典首页

请输入您要查询的函数:

 

术语 blockinput
释义 BlockInput
语法:
BOOL BlockInput( BOOL fBlockIt
);
BlockInput功能
BlockInput功能块的键盘和鼠标输入的应用深远的事件。
参数
fBlockIt
[in]指定功能的目的。如果此参数为TRUE,键盘和鼠标输入的事件被阻止。如果此参数为FALSE,键盘和鼠标事件是畅通的。请注意,只有线程阻塞输入可以成功地解除封锁的投入。
返回值
如果函数成功,返回值为非零。
如果输入已经封锁,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
当输入受阻,从鼠标或键盘输入真实的物理不会影响输入队列的同步国家重点(记者GetKeyState和GetKeyboardState),也不会影响国家重点异步(由GetAsyncKeyState报告)。然而,线程阻塞输入可以调用SendInput影响这两个关键州。没有其他线程可以做到这一点。
该系统将解除封锁在下列情况下输入:
线程阻塞输入意外免去设置为FALSE fBlock BlockInput退出。在这种情况下,系统清理得当,重新启用的投入。
Windows 95/98/Me中:系统显示关闭程序/故障对话框。这可能会发生故障或线程,如果用户按Ctrl + Alt + Del组合。
视窗2000/XP的:用户按Ctrl + Alt + Del组合或系统调用硬盘系统错误模式消息框(例如,当一个程序故障或设备故障)。
功能信息
最低DLL版本 user32.dll
HeaderDeclared在winable.h
import libraryUser32.lib
最低经营systemsWindows 98时,Windows 2000
参见
键盘输入,GetAsyncKeyState,GetKeyboardState,GetKeyState,SendInput
==英文原文==BlockInput Function
The BlockInput function blocks keyboard and mouse input events from reaching applications.
Syntax
BOOL BlockInput( BOOL 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. Note that only the thread that blocked input can successfully unblock input.
Return Value
If the function succeeds, the return value is nonzero.
If input is already blocked, the return value is zero. To get extended error information, call GetLastError .
Remarks
When input is blocked, real physical input from the mouse or keyboard will not affect the input queue's synchronous key state (reported by GetKeyState and GetKeyboardState ), nor will it affect the asynchronous key state (reported by GetAsyncKeyState ). However, the thread that is blocking input can affect both of these key states by calling SendInput . No other thread can do this.
The system will unblock input in the following cases:
The thread that blocked input unexpectedly exits without calling BlockInput with fBlock set to FALSE. In this case, the system cleans up properly and re-enables input.
Windows 95/98/Me: The system displays the Close Program/Fault dialog box. This can occur if the thread faults or if the user presses CTRL+ALT+DEL.
Windows 2000/XP: The user presses CTRL+ALT+DEL or the system invokes the Hard System Error modal message box (for example, when a program faults or a device fails).
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in winable.h
Import libraryUser32.lib
Minimum operating systemsWindows 98, Windows 2000
See Also
Keyboard Input , GetAsyncKeyState , GetKeyboardState , GetKeyState , SendInput
==原始网址==http://msdn.microsoft.com/en-us/library/ms646290(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:30:09