CM_Setup_DevNode (cfgmgr32)
Last changed: anonymous

.
Summary
Restarts a device instance that is not running because there is a problem with the device configuration. If the operation succeeds, the function returns CR_SUCCESS. Otherwise it returns one of the error codes with "CR_" prefix that are defined in Cfgmgr32.h.

C# Signature:

[DllImport("Cfgmgr32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern int CM_Setup_DevNode(int deviceInstance, CMSetupDevNodeFlags flags);

Parameters:

deviceInstance, A device instance handle that is bound to the local system.

flags, Flags that select the mode of restarting.

VB Signature:

Declare Function CM_Setup_DevNode Lib "cfgmgr32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation