UnregisterHotKey Function

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 Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systems Windows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.

See Also

Tags :


Page view tracker