The UnregisterHotKey function frees a hot key previously registered by the calling thread.
BOOL UnregisterHotKey(
HWND hWnd, // window associated with hot key
int id // identifier of hot key
);
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.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Keyboard Input Overview, Keyboard Input Functions, RegisterHotKey, WM_HOTKEY