UnregisterDeviceNotification function

Closes the specified device notification handle.

Syntax

BOOL UnregisterDeviceNotification(
  HDEVNOTIFY Handle
);

Parameters

Handle

Device notification handle returned by the RegisterDeviceNotification function.

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.

Requirements

   
Windows version Windows XP Windows Server 2003
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

Device Management Functions

Device Notifications

RegisterDeviceNotification

WM_DEVICECHANGE