Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CM_Uninstall_DevNode
Collapse the table of content
Expand the table of content

CM_Uninstall_DevNode function

This function is reserved for system use. Do not use this function in your class installers, co-installers, or device installation applications. To perform DIF_REMOVE use SetupDiCallClassInstaller.

The CM_Uninstall_DevNode function removes all persistent state associated with a device instance.

Syntax


CMAPI
CONFIGRET
WINAPI CM_Uninstall_DevNode(
  _In_ DEVNODE dnDevInst,
  _In_ ULONG   ulFlags
);

Parameters

dnDevInst [in]

Device instance handle that is bound to the local machine.

ulFlags [in]

Reserved. Must be set to zero.

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

This function is reserved for system use. Do not use this function in your class installers, co-installers, or device installation applications. To perform DIF_REMOVE use SetupDiCallClassInstaller.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib;
OneCoreUAP.lib on Windows 10

DLL

CfgMgr32.dll

See also

SetupDiCallClassInstaller

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft