Release 0.9.14.
[wine/multimedia.git] / dlls / ole32 / ole2nls.c
blob9851d707d2c5f793c12dbaf4ee4c310218b39810
1 /*
2 * OLE2NLS library
4 * Copyright 1995 Martin von Loewis
5 * Copyright 1998 David Lee Lambert
6 * Copyright 2000 Julio César Gázquez
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "config.h"
25 #include <string.h>
26 #include <stdarg.h>
27 #include <stdio.h>
28 #include <ctype.h>
29 #include <stdlib.h>
30 #include <locale.h>
32 #include "windef.h"
33 #include "winbase.h"
34 #include "winerror.h"
35 #include "winnls.h"
36 #include "winreg.h"
37 #include "winuser.h"
38 #include "winver.h"
40 #include "wine/winbase16.h"
42 #include "wine/debug.h"
44 WINE_DEFAULT_DEBUG_CHANNEL(ole);
46 static LPVOID lpNLSInfo = NULL;
48 /******************************************************************************
49 * GetLocaleInfoA [OLE2NLS.5]
50 * Is the last parameter really WORD for Win16?
52 INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len)
54 return GetLocaleInfoA(lcid,LCType,buf,len);
57 /******************************************************************************
58 * GetStringTypeA [OLE2NLS.7]
60 BOOL16 WINAPI GetStringType16(LCID locale,DWORD dwInfoType,LPCSTR src,
61 INT16 cchSrc,LPWORD chartype)
63 return GetStringTypeExA(locale,dwInfoType,src,cchSrc,chartype);
66 /******************************************************************************
67 * GetUserDefaultLCID [OLE2NLS.1]
69 LCID WINAPI GetUserDefaultLCID16(void)
71 return GetUserDefaultLCID();
74 /******************************************************************************
75 * GetSystemDefaultLCID [OLE2NLS.2]
77 LCID WINAPI GetSystemDefaultLCID16(void)
79 return GetSystemDefaultLCID();
82 /******************************************************************************
83 * GetUserDefaultLangID [OLE2NLS.3]
85 LANGID WINAPI GetUserDefaultLangID16(void)
87 return GetUserDefaultLangID();
90 /******************************************************************************
91 * GetSystemDefaultLangID [OLE2NLS.4]
93 LANGID WINAPI GetSystemDefaultLangID16(void)
95 return GetSystemDefaultLangID();
98 /******************************************************************************
99 * LCMapStringA [OLE2NLS.6]
101 INT16 WINAPI LCMapString16(LCID lcid, DWORD mapflags, LPCSTR srcstr, INT16 srclen,
102 LPSTR dststr, INT16 dstlen)
104 return LCMapStringA(lcid, mapflags, srcstr, srclen, dststr, dstlen);
107 /***********************************************************************
108 * CompareStringA (OLE2NLS.8)
110 UINT16 WINAPI CompareString16(DWORD lcid,DWORD fdwStyle,
111 LPCSTR s1,DWORD l1,LPCSTR s2,DWORD l2)
113 return (UINT16)CompareStringA(lcid,fdwStyle,s1,l1,s2,l2);
116 /******************************************************************************
117 * RegisterNLSInfoChanged [OLE2NLS.9]
119 BOOL16 WINAPI RegisterNLSInfoChanged16(LPVOID lpNewNLSInfo) /* [???] FIXME */
121 FIXME("Fully implemented, but doesn't effect anything.\n");
123 if (!lpNewNLSInfo) {
124 lpNLSInfo = NULL;
125 return TRUE;
127 else {
128 if (!lpNLSInfo) {
129 lpNLSInfo = lpNewNLSInfo;
130 return TRUE;
134 return FALSE; /* ptr not set */