MNLS_MultiByteToWideChar

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);

Parameters

  • 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.

Return Value

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

Remarks

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