Expand Minimize

MNLS_MultiByteToWideChar

Office 2010

Last modified: September 19, 2011

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Similar to MultiByteToWideChar, which maps a character string to a UTF-16 (wide character) string. The character string is not necessarily from a multibyte character set.

int MNLS_MultiByteToWideChar(
  UINT uCodePage,
  DWORD dwFlags,
  LPCSTR lpMultiByteStr, 
  int cchMultiByte,
  LPWSTR lpWideCharStr, 
  int cchWideChar);

uCodePage

[in] Code page to use in performing the conversion.

dwFlags

[in] Flags indicating the conversion type.

lpMultiByteStr

[in] Pointer to the character string to convert.

cchMultiByte

[in] Size, in bytes, of the string indicated by the lpMultiByteStr parameter.

lpWideCharStr

[out] Optional. Pointer to a buffer that receives the converted string.

cchWideChar

[in] Size, in characters, of the buffer indicated by lpWideCharStr.

Returns the number of characters written to the buffer indicated by lpWideCharStr if successful.

This function wraps the MultiByteToWideChar function. For more information, see MultiByteToWideChar.

Show:
© 2014 Microsoft