/* * Win32 kernel functions * * Copyright 1995 Martin von Loewis and Cameron Heide */ #include #include "windows.h" #include "winerror.h" #include "kernel32.h" #include "stddebug.h" #include "debug.h" /*********************************************************************** * GetACP (KERNEL32.148) */ UINT GetACP(void) { return 1252; /* Windows 3.1 ISO Latin */ } /*********************************************************************** * GetCPInfo (KERNEL32.154) */ BOOL GetCPInfo(UINT codepage, LPCPINFO cpinfo) { cpinfo->MaxCharSize = 1; cpinfo->DefaultChar[0] = '?'; return 1; } /*********************************************************************** * GetOEMCP (KERNEL32.248) */ UINT GetOEMCP(void) { return 437; /* MS-DOS United States */ } /*********************************************************************** * MultiByteToWideChar (KERNEL32.392) */ int MultiByteToWideChar(UINT page, DWORD flags, char *src, int srclen, WCHAR *dst, int dstlen) { return (srclen==-1) ? strlen(src) * 2: srclen*2; }