The UnregisterHotKey function frees a hot key previously registered by the calling thread.
Syntax
BOOL UnregisterHotKey(
HWND hWnd,
int id
);
Parameters
- hWnd
-
[in] Handle to the window associated with the hot key to be freed. This parameter should be NULL if the hot key is not associated with a window.
- id
-
[in] Specifies the identifier of the hot key to be freed.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
For an example, see Displaying Keyboard Input.
Function Information
| Minimum DLL Version | user32.dll |
|---|
| Header | Declared in Winuser.h, include Windows.h |
|---|
| Import library | User32.lib |
|---|
| Minimum operating systems |
Windows 95, Windows NT 3.1 |
|---|
| Unicode | Implemented as
Unicode version. |
|---|
See Also