This topic has not yet been rated - Rate this topic

UnregisterDeviceNotification function

Applies to: desktop apps only

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 XP

Minimum supported server

Windows Server 2003

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: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ