Expand Minimize

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  CM_Unregister_Notification cannot be called from a notification callback.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows 8 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib;
OneCoreUAP.lib on Windows 10 Technical Preview

DLL

CfgMgr32.dll

See also

UnregisterDeviceNotification

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft