wiauStrC2W function (wiautil.h)

The wiauStrC2W function converts an ANSI character string to a Unicode string.

Syntax

HRESULT wiauStrC2W(
  [in]  CHAR  *pszSrc,
  [out] WCHAR *pwszDst,
        INT   iSize
);

Parameters

[in] pszSrc

Points to the ANSI string to convert.

[out] pwszDst

Pointer to a memory location that receives the converted Unicode string.

iSize

Specifies the size, in bytes, of the buffer pointed to by pwszDst.

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

wiauStrC2C

wiauStrW2C

wiauStrW2W