Release 951124
[wine/multimedia.git] / win32 / code_page.c
blob1ec99531ad90e6a1c51bea500d9dc9bb6d609b1e
1 /*
2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
5 */
7 #include <stdio.h>
8 #include "windows.h"
9 #include "winerror.h"
10 #include "kernel32.h"
11 #include "stddebug.h"
12 #include "debug.h"
15 /***********************************************************************
16 * GetACP (KERNEL32.148)
18 UINT GetACP(void)
20 return 1252; /* Windows 3.1 ISO Latin */
23 /***********************************************************************
24 * GetCPInfo (KERNEL32.154)
26 BOOL GetCPInfo(UINT codepage, LPCPINFO cpinfo)
28 cpinfo->MaxCharSize = 1;
29 cpinfo->DefaultChar[0] = '?';
31 return 1;
34 /***********************************************************************
35 * GetOEMCP (KERNEL32.248)
37 UINT GetOEMCP(void)
39 return 437; /* MS-DOS United States */
42 /***********************************************************************
43 * MultiByteToWideChar (KERNEL32.392)
45 int MultiByteToWideChar(UINT page, DWORD flags, char *src, int srclen,
46 WCHAR *dst, int dstlen)
48 return (srclen==-1) ? strlen(src) * 2: srclen*2;