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

CM_Enable_DevNode function

The CM_Enable_DevNode function enables a device.

Syntax


CMAPI
CONFIGRET
WINAPI CM_Enable_DevNode(
  _In_  DEVINST 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. Use SetupDiCallClassInstaller instead to send the DIF_PROPERTYCHANGE code with a state change of DICS_ENABLE.

Requirements

Version

Available in Microsoft Windows 2000 and later versions of Windows.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

CM_Disable_DevNode
SetupDiCallClassInstaller
DIF_PROPERTYCHANGE

 

 

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.