Export (0) Print
Expand All
Expand Minimize

EngMultiByteToWideChar function

The EngMultiByteToWideChar function converts an ANSI source string into a wide character string using the specified code page.

Syntax


INT EngMultiByteToWideChar(
  _In_       UINT   CodePage,
  _Out_opt_  LPWSTR WideCharString,
  _In_       INT    BytesInWideCharString,
  _In_opt_   LPSTR  MultiByteString,
  _In_       INT    BytesInMultiByteString
);

Parameters

CodePage [in]

Specifies the code page to use to perform the translation.

WideCharString [out, optional]

Pointer to the buffer into which the translated character string is copied.

BytesInWideCharString [in]

Specifies the size, in bytes, of WideCharString. If WideCharString is not large enough to contain the translation, EngMultiByteToWideChar truncates the string, and does not report an error.

MultiByteString [in, optional]

Pointer to the buffer containing the multibyte string to be translated.

BytesInMultiByteString [in]

Specifies the number of bytes in MultiByteString.

Return value

The EngMultiByteToWideChar function returns the number of bytes it converted to wide character form, if successful. Otherwise, the function returns -1.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

EngUnicodeToMultiByteN
EngWideCharToMultiByte

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft