CM_Open_Device_Interface_Key function
The CM_Open_Device_Interface_Key function opens the registry subkey that is used by applications and drivers to store information that is specific to a device interface.
Syntax
CMAPI CONFIGRET WINAPI CM_Open_Device_Interface_Key( _In_ LPCWSTR pszDeviceInterface, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDeviceInterface, _In_ ULONG ulFlags );
Parameters
- pszDeviceInterface [in]
-
Pointer to a string that identifies the device interface instance to open the registry subkey for.
- samDesired [in]
-
The requested registry security access to the registry subkey.
- Disposition [in]
-
Specifies how the registry key is to be opened. May be one of the following values:
- phkDeviceInterface [out]
-
Pointer to an HKEY that will receive the opened key upon success.
- 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
Close the handle returned from this function by calling RegCloseKey.
Requirements
|
Target platform | |
|---|---|
|
Version |
Available in Microsoft Windows Vista and later versions of Windows. |
|
Header |
|
|
Library |
|
|
Unicode and ANSI names |
CM_Open_Device_Interface_KeyW (Unicode) and CM_Open_Device_Interface_KeyA (ANSI) |
See also