Group: Keyboard Input - Library: user32
How to block the ALT+TAB shortcut (WinXP)
How to block the PrintScreen key
BOOL RegisterHotKey(
HWND hWnd,
int id,
UINT fsModifiers,
UINT vk
); DECLARE INTEGER RegisterHotKey IN user32;
INTEGER hWnd,;
INTEGER id,;
INTEGER fsModifiers,;
INTEGER vk
hWnd [in] Handle to the window that will receive WM_HOTKEY messages generated by the hot key.
id [in] Specifies the identifier of the hot key. No other hot key in the calling thread should have the same identifier.
fsModifiers [in] Specifies keys that must be pressed in combination with the key specified by the uVirtKey parameter in order to generate the WM_HOTKEY message.
vk [in] Specifies the virtual-key code of the hot key.
If the function succeeds, the return value is nonzero.
See also: UnregisterHotKey function.
Home