Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CM_Unregister_Notification function

Use UnregisterDeviceNotification instead of CM_Unregister_Notification if your code targets Windows 7 or earlier versions of Windows.

The CM_Unregister_Notification function closes the specified HCMNOTIFICATION handle.

Syntax


CMAPI
CONFIGRET
WINAPI CM_Unregister_Notification(
  _In_  HCMNOTIFICATION NotifyContext
);

Parameters

NotifyContext [in]

The HCMNOTIFICATION handle returned by the CM_Register_Notification function.

Return value

If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes defined in Cfgmgr32.h.

Remarks

Note  Use UnregisterDeviceNotification in your class installers, co-installers, or device installation applications instead of this function.

Note  CM_Unregister_Notification cannot be called from a notification callback.

Requirements

Version

Available in Microsoft Windows 8 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

UnregisterDeviceNotification

 

 

Send comments about this topic to Microsoft

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.