Expand Minimize

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

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

SetupDiCallClassInstaller

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft