Function Reference


Maps a character string to a wide-character (Unicode) string

#include <WinAPIConv.au3>
_WinAPI_MultiByteToWideChar ( $vText [, $iCodePage = 0 [, $iFlags = 0 [, $bRetString = False]]] )


$vText Text or DllStruct containing multibyte text to be converted
$iCodePage [optional] Specifies the code page to be used to perform the conversion:
    0 - ANSI code page
    1 - OEM code page
    2 - Macintosh code page
    3 - The Windows ANSI code page for the current thread
    42 - Symbol code page
    65000 - UTF-7
    65001 - UTF-8
$iFlags [optional] Flags that indicate whether to translate to precomposed or composite wide characters:
    $MB_PRECOMPOSED - Always use precomposed characters
    $MB_COMPOSITE - Always use composite characters
    $MB_USEGLYPHCHARS - Use glyph characters instead of control characters
$bRetString [optional] Flags that indicate whether to return a String or a DllStruct (default False : Structure)

Return Value

Success: String or DllStruct that contains the Unicode character string
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information


_WinAPI_MultiByteToWideCharEx, _WinAPI_WideCharToMultiByte

See Also

Search MultiByteToWideChar in MSDN Library.