Closes the specified device notification handle.
Syntax
BOOL WINAPI UnregisterDeviceNotification(
__in HDEVNOTIFY Handle
);
Parameters
- Handle [in]
-
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.
Examples
For an example, see
Registering for Device Notification.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Winuser.h (include Windows.h) |
| Library | User32.lib |
| DLL | User32.dll |
See Also
- Device Management Functions
- Device Notifications
- RegisterDeviceNotification
- WM_DEVICECHANGE
Send comments about this topic to Microsoft
Build date: 7/30/2009