// wiautil.h
HRESULT wiauRegGetStrA(
[in] HKEY hkKey,
[in] PCSTR pszValueName,
[out] PSTR pszValue,
[in, out] DWORD *pdwLength
);
View the official Windows Driver Kit DDI reference// wiautil.h
HRESULT wiauRegGetStrW(
[in] HKEY hkKey,
[in] PCWSTR pwszValueName,
[out] PWSTR pwszValue,
[in, out] WORD *pdwLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiauRegGetStr function gets a string value from the DeviceData section of the registry.
hkKey [in]Specifies the registry key handle. This parameter should be set to the value pointed to by the phkeyDeviceData parameter when wiauRegOpenData returns.
pszValueName [in]Points to the first character of a Unicode string containing the name of the registry entry.
pszValue [out]Pointer to a memory location that receives the string value, including a terminating null character.
pdwLength [in, out]Pointer to a memory location that receives the length, in bytes, of the string value pointed to by the pwszValue parameter. The length includes the terminating null character.
On success, the function returns S_OK. If the function fails, it returns a standard COM error.
The wiauRegGetStr function gets a string value from the DeviceData section of the registry.
hkKey [in]Specifies the registry key handle. This parameter should be set to the value pointed to by the phkeyDeviceData parameter when wiauRegOpenData returns.
pwszValueName [in]Points to the first character of a Unicode string containing the name of the registry entry.
pwszValue [out]Pointer to a memory location that receives the string value, including a terminating null character.
pdwLength [in, out]Pointer to a memory location that receives the length, in bytes, of the string value pointed to by the pwszValue parameter. The length includes the terminating null character.
On success, the function returns S_OK. If the function fails, it returns a standard COM error.