UnregisterDeviceNotification Function

Closes the specified device notification handle.

Syntax

C++
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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll

See Also

Device Management Functions
Device Notifications
RegisterDeviceNotification
WM_DEVICECHANGE

Send comments about this topic to Microsoft

Build date: 7/30/2009

Tags :


Page view tracker