Export (0) Print
Expand All
Expand Minimize

CM_Set_DevNode_Registry_Property function

The CM_Set_DevNode_Registry_Property function sets a specified device property in the registry.

Syntax


CMAPI
CONFIGRET
WINAPI CM_Set_DevNode_Registry_Property(
  _In_      DEVINST dnDevInst,
  _In_      ULONG ulProperty,
  _In_opt_  PCVOID Buffer,
  _In_      ULONG ulLength,
  _In_      ULONG ulFlags
);

Parameters

dnDevInst [in]

A caller-supplied device instance handle that is bound to the local machine.

ulProperty [in]

A CM_DRP_-prefixed constant value that identifies the device property to be set in the registry. These constants are defined in Cfgmgr32.h.

Buffer [in, optional]

A pointer to a caller-supplied buffer that supplies the requested device property, formatted appropriately for the property's data type.

ulLength [in]

The length, in bytes, of the supplied device property.

ulFlags [in]

Not used, must be zero.

Return value

If the operation succeeds, the function returns CR_SUCCESS. Otherwise, it returns one of the CR_-prefixed error codes that are defined in Cfgmgr32.h.

Remarks

Use SetupDiSetDeviceRegistryProperty instead of CM_Set_DevNode_Registry_Property.

For information about how to use device instance handles that are bound to the local machine, see CM_Get_Child.

Requirements

Version

Available starting with Microsoft Windows 2000.

Header

Cfgmgr32.h (include Cfgmgr32.h)

Library

Cfgmgr32.lib

See also

CM_Get_Child
CM_Get_DevNode_Registry_Property
SetupDiSetDeviceRegistryProperty

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft