UnregisterHotKey

  BOOL UnregisterHotKey(hwnd, idHotKey)    
  HWND hwnd; /* window associated with hot key */
  int idHotKey; /* identifier of hot key */

The UnregisterHotKey function frees a hot key previously registered by calling thread.

Parameters

hwnd

Identifies the window associated with the hot key to free. This parameter should be NULL if the hot key is not associated with a window.

idHotKey

Specifies the identifier of the hot key to be freed.

Return Value

The return value is TRUE if the function is successful, or FALSE if an error occurs. Use the GetLastError function to obtain extended error information.

See Also

RegisterHotKey, WM_HOTKEY