Bewerken

Delen via


wiauStrW2C function (wiautil.h)

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

Syntax

HRESULT wiauStrW2C(
  [in]  WCHAR *pwszSrc,
  [out] CHAR  *pszDst,
        INT   iSize
);

Parameters

[in] pwszSrc

Points to the Unicode string to be converted.

[out] pszDst

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

iSize

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

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

wiauStrC2W

wiauStrW2W