File:  [RetroPC.NET] / np2 / wince / oemtext.h
Revision 1.2: download - view: text, annotated - select for diffs
Sat Feb 12 21:14:00 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: HEAD
move codecnv (T.Yui)


#ifdef __cplusplus
extern "C" {
#endif

#if defined(UNICODE) && defined(OSLANG_UTF8)
UINT oemtext_sjistooem(OEMCHAR *dst, UINT dcnt, const char *src, UINT scnt);
UINT oemtext_oemtosjis(char *dst, UINT dcnt, const OEMCHAR *src, UINT scnt);
#elif defined(UNICODE) && defined(OSLANG_UCS2)
#define oemtext_sjistooem(dst, dcnt, src, scnt) \
			MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, -1, dst, dcnt)
#define oemtext_oemtosjis(dst, dcnt, src, scnt) \
			WideCharToMultiByte(CP_ACP, 0, src, -1, dst, dcnt, NULL, NULL)
#endif

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>