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
For information about how to use device instance handles that are bound to the local machine, see CM_Get_Child.
Requirements
|
Target platform | |
|---|---|
|
Version |
Available starting with Microsoft Windows 2000. |
|
Header |
|
|
Library |
|
|
Unicode and ANSI names |
CM_Set_DevNode_Registry_PropertyW (Unicode) |
See also