// wiautil.h
HRESULT wiauRegGetDwordA(
[in] HKEY hkKey,
[in] PCSTR pszValueName,
[out] DWORD *pdwValue
);
View the official Windows Driver Kit DDI reference// wiautil.h
HRESULT wiauRegGetDwordW(
[in] HKEY hkKey,
[in] PCWSTR pwszValueName,
[out] DWORD *pdwValue
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiauRegGetDword function gets a DWORD 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 phkeyDeviceDataparameter when wiauRegOpenData returns.
pszValueName [in]Points to the first byte of a Unicode string containing the name of the registry entry.
pdwValue [out]Pointer to a memory location that receives the returned DWORD value.
On success, the function returns S_OK. If the function fails, it returns a standard COM error.
The wiauRegGetDword function gets a DWORD 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 byte of a Unicode string containing the name of the registry entry.
pdwValue [out]Pointer to a memory location that receives the returned DWORD value.
On success, the function returns S_OK. If the function fails, it returns a standard COM error.