ReactOS 0.4.17-dev-1321-g5c122a9
WideCharToMultiByte.c File Reference
#include <windows.h>
Include dependency graph for WideCharToMultiByte.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 WideCharToMultiByte.c.

29{
30 /* For UTF-8 and CP 54936 only MB_ERR_INVALID_CHARS is allowed */
31 if ((_CodePage == CP_UTF8) || (_CodePage == 54936))
32 {
34 }
35
36 /* The following code pages require _DWFlags to be 0 */
37 else if ((_CodePage == 50220) || (_CodePage == 50221) || (_CodePage == 50222) ||
38 (_CodePage == 50225) || (_CodePage == 50227) || (_CodePage == 50229) ||
39 ((_CodePage >= 57002) && (_CodePage <= 57011)) ||
41 {
42 _DWFlags = 0;
43 }
44
53}
_In_ DWORD _In_ LPCWSTR _In_ int _In_ int _In_opt_ LPCSTR _LpDefaultChar
_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_ LPCWSTR _In_ int _In_ int _In_opt_ LPCSTR _Out_opt_ LPBOOL _LpUsedDefaultChar
_In_ DWORD _In_ LPCSTR _LpMultiByteStr
#define WideCharToMultiByte
Definition: compat.h:111
#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