62f6add9b78b0e919e24bbd666b69ab218dd2ee2
1 #define WIN32_NO_STATUS
5 #include <ndk/umtypes.h>
6 #include <ndk/rtlfuncs.h>
12 int mbtowc (wchar_t *wchar
, const char *mbchar
, size_t count
)
20 Status
= RtlMultiByteToUnicodeN (wchar
,
25 if (!NT_SUCCESS(Status
))
34 size_t mbstowcs (wchar_t *wcstr
, const char *mbstr
, size_t count
)
40 Length
= strlen (mbstr
);
44 RtlMultiByteToUnicodeSize (&Size
,
51 Status
= RtlMultiByteToUnicodeN (wcstr
,
56 if (!NT_SUCCESS(Status
))