Platform SDK: Hardware

UnregisterDeviceNotification

The UnregisterDeviceNotification function closes the specified device notification handle.

BOOL UnregisterDeviceNotification(
  HDEVNOTIFY Handle
);

Parameters

Handle
[in] Device notification handle returned by the RegisterDeviceNotification function.

Return Values

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 NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Winuser.h; include Windows.h.
  Library: Use User32.lib.

See Also

Device Management Overview, Device Management Functions, RegisterDeviceNotification, WM_DEVICECHANGE