Maps a character string to a wide-character (Unicode) string
#include <WinAPIConv.au3>
_WinAPI_MultiByteToWideCharEx ( $sText, $pText [, $iCodePage = $CP_ACP [, $iFlags = 0]] )
$sText | Text to be converted |
$pText | Pointer to a byte structure where the converted string will be stored |
$iCodePage | [optional] Specifies the code page to be used to perform the conversion: $CP_ACP (0) - The current system Windows ANSI code page $CP_OEM (1) - The current system OEM code page $CP_MACCP (2) - The current system Macintosh code page |
$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 |
Success: | True |
Failure: | False, call _WinAPI_GetLastError() to get extended error information |
The byte structure must be at least twice the length of $sText.