wiauRegGetStr - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wiautil-wiaureggetstra)

Description

The wiauRegGetStr function gets a string value from the DeviceData section of the registry.

Parameters

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.

Return value

On success, the function returns S_OK. If the function fails, it returns a standard COM error.

See also

wiauRegGetDword

wiauRegOpenData


Windows Driver Kit DDI reference (nf-wiautil-wiaureggetstrw)

wiauRegGetStrW function

Description

The wiauRegGetStr function gets a string value from the DeviceData section of the registry.

Parameters

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.

Return value

On success, the function returns S_OK. If the function fails, it returns a standard COM error.

See also

wiauRegGetDword

wiauRegOpenData