Click to Rate and Give Feedback
MSDN
MSDN Library
System Services
Device Services
Device Management
 UnregisterDeviceNotification Functi...
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker