ReactOS 0.4.17-dev-1321-g5c122a9
MultiByteToWideChar.c File Reference
#include <windows.h>
Include dependency graph for MultiByteToWideChar.c:

Go to the source code of this file.

Functions

 _Success_ (return !=0)
 

Function Documentation

◆ _Success_()

_Success_ ( return !  = 0)

Definition at line 17 of file MultiByteToWideChar.c.

27{
28 /* For UTF-8 and CP 54936 only MB_ERR_INVALID_CHARS is allowed */
29 if ((_CodePage == CP_UTF8) || (_CodePage == 54936))
30 {
32 }
33
34 /* The following code pages require _DWFlags to be 0 */
35 else if ((_CodePage == 50220) || (_CodePage == 50221) || (_CodePage == 50222) ||
36 (_CodePage == 50225) || (_CodePage == 50227) || (_CodePage == 50229) ||
37 ((_CodePage >= 57002) && (_CodePage <= 57011)) ||
39 {
40 _DWFlags = 0;
41 }
42
49}
_In_ DWORD _In_ LPCSTR _In_ int _In_ int _CchWideChar
_In_ DWORD _In_ LPCWSTR _LpWideCharStr
_In_ DWORD _In_ int _Out_ LPWORD _In_ int _CodePage
_In_ DWORD _DWFlags
_In_ DWORD _In_ LPCSTR _In_ int _CbMultiByte
_In_ DWORD _In_ LPCSTR _LpMultiByteStr
#define MultiByteToWideChar
Definition: compat.h:110
#define MB_ERR_INVALID_CHARS
Definition: unicode.h:41
#define CP_UTF8
Definition: nls.h:20
#define CP_SYMBOL
Definition: winnls.h:262
#define CP_UTF7
Definition: winnls.h:263