Bewerken

Delen via


wiauRegGetStrA function (wiautil.h)

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

Syntax

HRESULT wiauRegGetStrA(
  [in]      HKEY  hkKey,
  [in]      PCSTR pszValueName,
  [out]     PSTR  pszValue,
  [in, out] DWORD *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] pszValueName

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

[out] pszValue

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