wiauRegGetStrW function (wiautil.h)

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

Syntax

HRESULT wiauRegGetStrW(
  [in]      HKEY   hkKey,
  [in]      PCWSTR pwszValueName,
  [out]     PWSTR  pwszValue,
  [in, out] WORD   *pdwLength
);

Parameters

[in] hkKey

Specifies the registry key handle. This parameter should be set to the value pointed to by the phkeyDeviceData parameter when wiauRegOpenData returns.

[in] pwszValueName

Points to the first character of a Unicode string containing the name of the registry entry.

[out] pwszValue

Pointer to a memory location that receives the string value, including a terminating null character.

[in, out] pdwLength

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.

Requirements

Requirement Value
Target Platform Desktop
Header wiautil.h (include Wiautil.h)

See also

wiauRegGetDword

wiauRegOpenData