#include <windows.h> instead of "windows.h".
[wine.git] / include / winnls.h
blob497ee361b87d4b969878f5c9db76b1aac2c3acdc
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINNLS_H
20 #define __WINE_WINNLS_H
21 #ifndef NONLS
23 #include "winbase.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
30 #define MB_PRECOMPOSED 0x00000001
31 #define MB_COMPOSITE 0x00000002
32 #define MB_USEGLYPHCHARS 0x00000004
33 #define MB_ERR_INVALID_CHARS 0x00000008
35 #define LGRPID_INSTALLED 0x00000001
36 #define LGRPID_SUPPORTED 0x00000002
38 #define LCID_INSTALLED 0x00000001
39 #define LCID_SUPPORTED 0x00000002
40 #define LCID_ALTERNATE_SORTS 0x00000004
42 /* flags to GetLocaleInfo */
43 #define LOCALE_NOUSEROVERRIDE 0x80000000
44 #define LOCALE_USE_CP_ACP 0x40000000
45 #define LOCALE_RETURN_NUMBER 0x20000000
47 /* When adding new defines, don't forget to add an entry to the
48 * locale_name2id map in ole/ole2nls.c
50 #define LOCALE_ILANGUAGE 0x00000001
51 #define LOCALE_SLANGUAGE 0x00000002
52 #define LOCALE_SENGLANGUAGE 0x00001001
53 #define LOCALE_SABBREVLANGNAME 0x00000003
54 #define LOCALE_SNATIVELANGNAME 0x00000004
55 #define LOCALE_ICOUNTRY 0x00000005
56 #define LOCALE_SCOUNTRY 0x00000006
57 #define LOCALE_SENGCOUNTRY 0x00001002
58 #define LOCALE_SABBREVCTRYNAME 0x00000007
59 #define LOCALE_SNATIVECTRYNAME 0x00000008
60 #define LOCALE_IDEFAULTLANGUAGE 0x00000009
61 #define LOCALE_IDEFAULTCOUNTRY 0x0000000A
62 #define LOCALE_IDEFAULTCODEPAGE 0x0000000B
63 #define LOCALE_IDEFAULTANSICODEPAGE 0x00001004
64 #define LOCALE_IDEFAULTMACCODEPAGE 0x00001011
65 #define LOCALE_SLIST 0x0000000C
66 #define LOCALE_IMEASURE 0x0000000D
67 #define LOCALE_SDECIMAL 0x0000000E
68 #define LOCALE_STHOUSAND 0x0000000F
69 #define LOCALE_SGROUPING 0x00000010
70 #define LOCALE_IDIGITS 0x00000011
71 #define LOCALE_ILZERO 0x00000012
72 #define LOCALE_INEGNUMBER 0x00001010
73 #define LOCALE_SNATIVEDIGITS 0x00000013
74 #define LOCALE_SCURRENCY 0x00000014
75 #define LOCALE_SINTLSYMBOL 0x00000015
76 #define LOCALE_SMONDECIMALSEP 0x00000016
77 #define LOCALE_SMONTHOUSANDSEP 0x00000017
78 #define LOCALE_SMONGROUPING 0x00000018
79 #define LOCALE_ICURRDIGITS 0x00000019
80 #define LOCALE_IINTLCURRDIGITS 0x0000001A
81 #define LOCALE_ICURRENCY 0x0000001B
82 #define LOCALE_INEGCURR 0x0000001C
83 #define LOCALE_SDATE 0x0000001D
84 #define LOCALE_STIME 0x0000001E
85 #define LOCALE_SSHORTDATE 0x0000001F
86 #define LOCALE_SLONGDATE 0x00000020
87 #define LOCALE_STIMEFORMAT 0x00001003
88 #define LOCALE_IDATE 0x00000021
89 #define LOCALE_ILDATE 0x00000022
90 #define LOCALE_ITIME 0x00000023
91 #define LOCALE_ITIMEMARKPOSN 0x00001005
92 #define LOCALE_ICENTURY 0x00000024
93 #define LOCALE_ITLZERO 0x00000025
94 #define LOCALE_IDAYLZERO 0x00000026
95 #define LOCALE_IMONLZERO 0x00000027
96 #define LOCALE_S1159 0x00000028
97 #define LOCALE_S2359 0x00000029
98 #define LOCALE_ICALENDARTYPE 0x00001009
99 #define LOCALE_IOPTIONALCALENDAR 0x0000100B
100 #define LOCALE_IFIRSTDAYOFWEEK 0x0000100C
101 #define LOCALE_IFIRSTWEEKOFYEAR 0x0000100D
102 #define LOCALE_SDAYNAME1 0x0000002A
103 #define LOCALE_SDAYNAME2 0x0000002B
104 #define LOCALE_SDAYNAME3 0x0000002C
105 #define LOCALE_SDAYNAME4 0x0000002D
106 #define LOCALE_SDAYNAME5 0x0000002E
107 #define LOCALE_SDAYNAME6 0x0000002F
108 #define LOCALE_SDAYNAME7 0x00000030
109 #define LOCALE_SABBREVDAYNAME1 0x00000031
110 #define LOCALE_SABBREVDAYNAME2 0x00000032
111 #define LOCALE_SABBREVDAYNAME3 0x00000033
112 #define LOCALE_SABBREVDAYNAME4 0x00000034
113 #define LOCALE_SABBREVDAYNAME5 0x00000035
114 #define LOCALE_SABBREVDAYNAME6 0x00000036
115 #define LOCALE_SABBREVDAYNAME7 0x00000037
116 #define LOCALE_SMONTHNAME1 0x00000038
117 #define LOCALE_SMONTHNAME2 0x00000039
118 #define LOCALE_SMONTHNAME3 0x0000003A
119 #define LOCALE_SMONTHNAME4 0x0000003B
120 #define LOCALE_SMONTHNAME5 0x0000003C
121 #define LOCALE_SMONTHNAME6 0x0000003D
122 #define LOCALE_SMONTHNAME7 0x0000003E
123 #define LOCALE_SMONTHNAME8 0x0000003F
124 #define LOCALE_SMONTHNAME9 0x00000040
125 #define LOCALE_SMONTHNAME10 0x00000041
126 #define LOCALE_SMONTHNAME11 0x00000042
127 #define LOCALE_SMONTHNAME12 0x00000043
128 #define LOCALE_SMONTHNAME13 0x0000100E
129 #define LOCALE_SABBREVMONTHNAME1 0x00000044
130 #define LOCALE_SABBREVMONTHNAME2 0x00000045
131 #define LOCALE_SABBREVMONTHNAME3 0x00000046
132 #define LOCALE_SABBREVMONTHNAME4 0x00000047
133 #define LOCALE_SABBREVMONTHNAME5 0x00000048
134 #define LOCALE_SABBREVMONTHNAME6 0x00000049
135 #define LOCALE_SABBREVMONTHNAME7 0x0000004A
136 #define LOCALE_SABBREVMONTHNAME8 0x0000004B
137 #define LOCALE_SABBREVMONTHNAME9 0x0000004C
138 #define LOCALE_SABBREVMONTHNAME10 0x0000004D
139 #define LOCALE_SABBREVMONTHNAME11 0x0000004E
140 #define LOCALE_SABBREVMONTHNAME12 0x0000004F
141 #define LOCALE_SABBREVMONTHNAME13 0x0000100F
142 #define LOCALE_SPOSITIVESIGN 0x00000050
143 #define LOCALE_SNEGATIVESIGN 0x00000051
144 #define LOCALE_IPOSSIGNPOSN 0x00000052
145 #define LOCALE_INEGSIGNPOSN 0x00000053
146 #define LOCALE_IPOSSYMPRECEDES 0x00000054
147 #define LOCALE_IPOSSEPBYSPACE 0x00000055
148 #define LOCALE_INEGSYMPRECEDES 0x00000056
149 #define LOCALE_INEGSEPBYSPACE 0x00000057
150 #define LOCALE_FONTSIGNATURE 0x00000058
151 #define LOCALE_SISO639LANGNAME 0x00000059
152 #define LOCALE_SISO3166CTRYNAME 0x0000005A
154 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x00001012
155 #define LOCALE_IPAPERSIZE 0x0000100A
156 #define LOCALE_SENGCURRNAME 0x00001007
157 #define LOCALE_SNATIVECURRNAME 0x00001008
158 #define LOCALE_SYEARMONTH 0x00001006
159 #define LOCALE_SSORTNAME 0x00001013
160 #define LOCALE_IDIGITSUBSTITUTION 0x00001014
162 #define LOCALE_IDEFAULTUNIXCODEPAGE 0x00001030 /* Wine extension */
164 #define NORM_IGNORECASE 1
165 #define NORM_IGNORENONSPACE 2
166 #define NORM_IGNORESYMBOLS 4
167 #define NORM_STRINGSORT 0x1000
168 #define NORM_IGNOREKANATYPE 0x00010000
169 #define NORM_IGNOREWIDTH 0x00020000
171 #define CP_ACP 0
172 #define CP_OEMCP 1
173 #define CP_MACCP 2
174 #define CP_THREAD_ACP 3
175 #define CP_SYMBOL 42
176 #define CP_UTF7 65000
177 #define CP_UTF8 65001
179 #define WC_DISCARDNS 0x00000010
180 #define WC_SEPCHARS 0x00000020
181 #define WC_DEFAULTCHAR 0x00000040
182 #define WC_COMPOSITECHECK 0x00000200
183 #define WC_NO_BEST_FIT_CHARS 0x00000400
186 /* Locale Dependent Mapping Flags */
187 #define LCMAP_LOWERCASE 0x00000100 /* lower case letters */
188 #define LCMAP_UPPERCASE 0x00000200 /* upper case letters */
189 #define LCMAP_SORTKEY 0x00000400 /* WC sort key (normalize) */
190 #define LCMAP_BYTEREV 0x00000800 /* byte reversal */
192 #define SORT_STRINGSORT 0x00001000 /* take punctuation into account */
194 #define LCMAP_HIRAGANA 0x00100000 /* map katakana to hiragana */
195 #define LCMAP_KATAKANA 0x00200000 /* map hiragana to katakana */
196 #define LCMAP_HALFWIDTH 0x00400000 /* map double byte to single byte */
197 #define LCMAP_FULLWIDTH 0x00800000 /* map single byte to double byte */
199 /* Date Flags for GetDateFormat. */
201 #define DATE_SHORTDATE 0x00000001 /* use short date picture */
202 #define DATE_LONGDATE 0x00000002 /* use long date picture */
203 #define DATE_USE_ALT_CALENDAR 0x00000004 /* use alternate calendar */
204 /* alt. calendar support is broken anyway */
206 #define DATE_YEARMONTH 0x00000008 /* use year/month */
207 #define DATE_LTRREADING 0x00000010 /* left to right reading order */
208 #define DATE_RTLREADING 0x00000020 /* right to left reading order */
210 #define TIME_FORCE24HOURFORMAT 0x00000008 /* force 24 hour format*/
211 #define TIME_NOTIMEMARKER 0x00000004 /* show no AM/PM */
212 #define TIME_NOSECONDS 0x00000002 /* show no seconds */
213 #define TIME_NOMINUTESORSECONDS 0x0000001 /* show no minutes either */
215 /* internal flags for GetDateFormat system */
216 #define DATE_DATEVARSONLY 0x00000100 /* only date stuff: yMdg */
217 #define TIME_TIMEVARSONLY 0x00000200 /* only time stuff: hHmst */
218 /* use this in a Winelib program if you really want all types */
219 #define LOCALE_TIMEDATEBOTH 0x00000300 /* full set */
221 /* Tests that we currently implement */
222 #define ITU_IMPLEMENTED_TESTS \
223 IS_TEXT_UNICODE_SIGNATURE| \
224 IS_TEXT_UNICODE_ODD_LENGTH
227 /* Character Type Flags */
228 #define CT_CTYPE1 0x00000001 /* usual ctype */
229 #define CT_CTYPE2 0x00000002 /* bidirectional layout info */
230 #define CT_CTYPE3 0x00000004 /* textprocessing info */
232 /* CType 1 Flag Bits */
233 #define C1_UPPER 0x0001
234 #define C1_LOWER 0x0002
235 #define C1_DIGIT 0x0004
236 #define C1_SPACE 0x0008
237 #define C1_PUNCT 0x0010
238 #define C1_CNTRL 0x0020
239 #define C1_BLANK 0x0040
240 #define C1_XDIGIT 0x0080
241 #define C1_ALPHA 0x0100
243 /* CType 2 Flag Bits */
244 #define C2_LEFTTORIGHT 0x0001
245 #define C2_RIGHTTOLEFT 0x0002
246 #define C2_EUROPENUMBER 0x0003
247 #define C2_EUROPESEPARATOR 0x0004
248 #define C2_EUROPETERMINATOR 0x0005
249 #define C2_ARABICNUMBER 0x0006
250 #define C2_COMMONSEPARATOR 0x0007
251 #define C2_BLOCKSEPARATOR 0x0008
252 #define C2_SEGMENTSEPARATOR 0x0009
253 #define C2_WHITESPACE 0x000A
254 #define C2_OTHERNEUTRAL 0x000B
255 #define C2_NOTAPPLICABLE 0x0000
257 /* CType 3 Flag Bits */
258 #define C3_NONSPACING 0x0001
259 #define C3_DIACRITIC 0x0002
260 #define C3_VOWELMARK 0x0004
261 #define C3_SYMBOL 0x0008
262 #define C3_KATAKANA 0x0010
263 #define C3_HIRAGANA 0x0020
264 #define C3_HALFWIDTH 0x0040
265 #define C3_FULLWIDTH 0x0080
266 #define C3_IDEOGRAPH 0x0100
267 #define C3_KASHIDA 0x0200
268 #define C3_LEXICAL 0x0400
269 #define C3_ALPHA 0x8000
270 #define C3_NOTAPPLICABLE 0x0000
272 /* Code page information.
274 #define MAX_LEADBYTES 12
275 #define MAX_DEFAULTCHAR 2
277 /* Defines for calendar handling */
278 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
279 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
280 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
281 #define CAL_ICALINTVALUE 0x00000001
282 #define CAL_SCALNAME 0x00000002
283 #define CAL_IYEAROFFSETRANGE 0x00000003
284 #define CAL_SERASTRING 0x00000004
285 #define CAL_SSHORTDATE 0x00000005
286 #define CAL_SLONGDATE 0x00000006
287 #define CAL_SDAYNAME1 0x00000007
288 #define CAL_SDAYNAME2 0x00000008
289 #define CAL_SDAYNAME3 0x00000009
290 #define CAL_SDAYNAME4 0x0000000a
291 #define CAL_SDAYNAME5 0x0000000b
292 #define CAL_SDAYNAME6 0x0000000c
293 #define CAL_SDAYNAME7 0x0000000d
294 #define CAL_SABBREVDAYNAME1 0x0000000e
295 #define CAL_SABBREVDAYNAME2 0x0000000f
296 #define CAL_SABBREVDAYNAME3 0x00000010
297 #define CAL_SABBREVDAYNAME4 0x00000011
298 #define CAL_SABBREVDAYNAME5 0x00000012
299 #define CAL_SABBREVDAYNAME6 0x00000013
300 #define CAL_SABBREVDAYNAME7 0x00000014
301 #define CAL_SMONTHNAME1 0x00000015
302 #define CAL_SMONTHNAME2 0x00000016
303 #define CAL_SMONTHNAME3 0x00000017
304 #define CAL_SMONTHNAME4 0x00000018
305 #define CAL_SMONTHNAME5 0x00000019
306 #define CAL_SMONTHNAME6 0x0000001a
307 #define CAL_SMONTHNAME7 0x0000001b
308 #define CAL_SMONTHNAME8 0x0000001c
309 #define CAL_SMONTHNAME9 0x0000001d
310 #define CAL_SMONTHNAME10 0x0000001e
311 #define CAL_SMONTHNAME11 0x0000001f
312 #define CAL_SMONTHNAME12 0x00000020
313 #define CAL_SMONTHNAME13 0x00000021
314 #define CAL_SABBREVMONTHNAME1 0x00000022
315 #define CAL_SABBREVMONTHNAME2 0x00000023
316 #define CAL_SABBREVMONTHNAME3 0x00000024
317 #define CAL_SABBREVMONTHNAME4 0x00000025
318 #define CAL_SABBREVMONTHNAME5 0x00000026
319 #define CAL_SABBREVMONTHNAME6 0x00000027
320 #define CAL_SABBREVMONTHNAME7 0x00000028
321 #define CAL_SABBREVMONTHNAME8 0x00000029
322 #define CAL_SABBREVMONTHNAME9 0x0000002a
323 #define CAL_SABBREVMONTHNAME10 0x0000002b
324 #define CAL_SABBREVMONTHNAME11 0x0000002c
325 #define CAL_SABBREVMONTHNAME12 0x0000002d
326 #define CAL_SABBREVMONTHNAME13 0x0000002e
327 #define CAL_SYEARMONTH 0x0000002f
328 #define CAL_ITWODIGITYEARMAX 0x00000030
329 #define CAL_GREGORIAN 1
330 #define CAL_GREGORIAN_US 2
331 #define CAL_JAPAN 3
332 #define CAL_TAIWAN 4
333 #define CAL_KOREA 5
334 #define CAL_HIJRI 6
335 #define CAL_THAI 7
336 #define CAL_HEBREW 8
337 #define CAL_GREGORIAN_ME_FRENCH 9
338 #define CAL_GREGORIAN_ARABIC 10
339 #define CAL_GREGORIAN_XLIT_ENGLISH 11
340 #define CAL_GREGORIAN_XLIT_FRENCH 12
342 /* CompareString defines */
343 #define CSTR_LESS_THAN 1
344 #define CSTR_EQUAL 2
345 #define CSTR_GREATER_THAN 3
348 * Language Group ID Values.
349 * Resources in kernel32 are LGRPID_xxx+0x2000 because low values were used by LOCALE_xxx
350 * This is done because resources in win2k kernel32 / winxp kernel32 are not even
351 * stored the same way.
353 #define LGRPID_WESTERN_EUROPE 0x0001 /* Western Europe & U.S. */
354 #define LGRPID_CENTRAL_EUROPE 0x0002 /* Central Europe */
355 #define LGRPID_BALTIC 0x0003 /* Baltic */
356 #define LGRPID_GREEK 0x0004 /* Greek */
357 #define LGRPID_CYRILLIC 0x0005 /* Cyrillic */
358 #define LGRPID_TURKISH 0x0006 /* Turkish */
359 #define LGRPID_JAPANESE 0x0007 /* Japanese */
360 #define LGRPID_KOREAN 0x0008 /* Korean */
361 #define LGRPID_TRADITIONAL_CHINESE 0x0009 /* Traditional Chinese */
362 #define LGRPID_SIMPLIFIED_CHINESE 0x000a /* Simplified Chinese */
363 #define LGRPID_THAI 0x000b /* Thai */
364 #define LGRPID_HEBREW 0x000c /* Hebrew */
365 #define LGRPID_ARABIC 0x000d /* Arabic */
366 #define LGRPID_VIETNAMESE 0x000e /* Vietnamese */
367 #define LGRPID_INDIC 0x000f /* Indic */
368 #define LGRPID_GEORGIAN 0x0010 /* Georgian */
369 #define LGRPID_ARMENIAN 0x0011 /* Armenian */
371 /* Types
374 typedef DWORD LGRPID;
375 typedef DWORD LCTYPE;
376 typedef DWORD CALTYPE;
377 typedef DWORD CALID;
379 typedef struct
381 UINT MaxCharSize;
382 BYTE DefaultChar[MAX_DEFAULTCHAR];
383 BYTE LeadByte[MAX_LEADBYTES];
384 } CPINFO, *LPCPINFO;
386 typedef struct
388 UINT MaxCharSize;
389 BYTE DefaultChar[MAX_DEFAULTCHAR];
390 BYTE LeadByte[MAX_LEADBYTES];
391 WCHAR UnicodeDefaultChar;
392 UINT CodePage;
393 CHAR CodePageName[MAX_PATH];
394 } CPINFOEXA, *LPCPINFOEXA;
396 typedef struct
398 UINT MaxCharSize;
399 BYTE DefaultChar[MAX_DEFAULTCHAR];
400 BYTE LeadByte[MAX_LEADBYTES];
401 WCHAR UnicodeDefaultChar;
402 UINT CodePage;
403 WCHAR CodePageName[MAX_PATH];
404 } CPINFOEXW, *LPCPINFOEXW;
406 DECL_WINELIB_TYPE_AW(CPINFOEX)
407 DECL_WINELIB_TYPE_AW(LPCPINFOEX)
409 typedef struct _numberfmtA {
410 UINT NumDigits;
411 UINT LeadingZero;
412 UINT Grouping;
413 LPSTR lpDecimalSep;
414 LPSTR lpThousandSep;
415 UINT NegativeOrder;
416 } NUMBERFMTA, *LPNUMBERFMTA;
418 typedef struct _numberfmtW {
419 UINT NumDigits;
420 UINT LeadingZero;
421 UINT Grouping;
422 LPWSTR lpDecimalSep;
423 LPWSTR lpThousandSep;
424 UINT NegativeOrder;
425 } NUMBERFMTW, *LPNUMBERFMTW;
427 DECL_WINELIB_TYPE_AW(NUMBERFMT)
428 DECL_WINELIB_TYPE_AW(LPNUMBERFMT)
430 typedef struct _currencyfmtA
432 UINT NumDigits;
433 UINT LeadingZero;
434 UINT Grouping;
435 LPSTR lpDecimalSep;
436 LPSTR lpThousandSep;
437 UINT NegativeOrder;
438 UINT PositiveOrder;
439 LPSTR lpCurrencySymbol;
440 } CURRENCYFMTA, *LPCURRENCYFMTA;
442 typedef struct _currencyfmtW
444 UINT NumDigits;
445 UINT LeadingZero;
446 UINT Grouping;
447 LPWSTR lpDecimalSep;
448 LPWSTR lpThousandSep;
449 UINT NegativeOrder;
450 UINT PositiveOrder;
451 LPWSTR lpCurrencySymbol;
452 } CURRENCYFMTW, *LPCURRENCYFMTW;
454 DECL_WINELIB_TYPE_AW(CURRENCYFMT)
455 DECL_WINELIB_TYPE_AW(LPCURRENCYFMT)
458 /* Define a bunch of callback types */
460 #if defined(STRICT)
461 typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR);
462 typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR);
463 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR,CALID);
464 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR,CALID);
465 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
466 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
467 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
468 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
469 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR,CALID);
470 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID);
471 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
472 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
473 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
474 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
475 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCA)(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR);
476 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR);
477 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID, LCID, LPSTR, LONG_PTR);
478 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID, LCID, LPWSTR, LONG_PTR);
479 #else
480 typedef FARPROC CALINFO_ENUMPROCA;
481 typedef FARPROC CALINFO_ENUMPROCW;
482 typedef FARPROC CALINFO_ENUMPROCEXA;
483 typedef FARPROC CALINFO_ENUMPROCEXW;
484 typedef FARPROC CODEPAGE_ENUMPROCA;
485 typedef FARPROC CODEPAGE_ENUMPROCW;
486 typedef FARPROC DATEFMT_ENUMPROCA;
487 typedef FARPROC DATEFMT_ENUMPROCW;
488 typedef FARPROC DATEFMT_ENUMPROCEXA;
489 typedef FARPROC DATEFMT_ENUMPROCEXW;
490 typedef FARPROC LOCALE_ENUMPROCA;
491 typedef FARPROC LOCALE_ENUMPROCW;
492 typedef FARPROC TIMEFMT_ENUMPROCA;
493 typedef FARPROC TIMEFMT_ENUMPROCW;
494 typedef FARPROC LANGUAGEGROUP_ENUMPROCA;
495 typedef FARPROC LANGUAGEGROUP_ENUMPROCW;
496 typedef FARPROC LANGGROUPLOCALE_ENUMPROCA;
497 typedef FARPROC LANGGROUPLOCALE_ENUMPROCW;
498 #endif /* STRICT */
500 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
501 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROCEX)
502 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
503 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC)
504 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROCEX)
505 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
506 DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC)
509 /* APIs
512 int WINAPI CompareStringA(LCID,DWORD,LPCSTR,int,LPCSTR,int);
513 int WINAPI CompareStringW(LCID,DWORD,LPCWSTR,int,LPCWSTR,int);
514 #define CompareString WINELIB_NAME_AW(CompareString)
515 LCID WINAPI ConvertDefaultLocale(LCID);
516 BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE);
517 BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE);
518 #define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo)
519 BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE);
520 BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE);
521 #define EnumCalendarInfoEx WINELIB_NAME_AW(EnumCalendarInfoEx)
522 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD);
523 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD);
524 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
525 BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD);
526 BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD);
527 #define EnumDateFormatsEx WINELIB_NAME_AW(EnumDateFormatsEx)
528 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
529 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
530 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
531 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
532 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
533 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
534 BOOL WINAPI EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR);
535 BOOL WINAPI EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR);
536 #define EnumSystemLanguageGroups WINELIB_NAME_AW(EnumSystemLanguageGroups)
537 BOOL WINAPI EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR);
538 BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR);
539 #define EnumLanguageGroupLocales WINELIB_NAME_AW(EnumLanguageGroupLocales)
540 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD);
541 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD);
542 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
543 int WINAPI FoldStringA(DWORD,LPCSTR,int,LPSTR,int);
544 int WINAPI FoldStringW(DWORD,LPCWSTR,int,LPWSTR,int);
545 #define FoldString WINELIB_NAME_AW(FoldString)
546 UINT WINAPI GetACP(void);
547 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
548 BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA);
549 BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW);
550 #define GetCPInfoEx WINELIB_NAME_AW(GetCPInfoEx)
551 int WINAPI GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD);
552 int WINAPI GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD);
553 #define GetCalendarInfo WINELIB_NAME_AW(GetCalendarInfo)
554 INT WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,int);
555 INT WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,int);
556 #define GetCurrencyFormat WINELIB_NAME_AW(GetCurrencyFormat)
557 INT WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
558 INT WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
559 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
560 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
561 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
562 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
563 INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
564 INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
565 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat)
566 UINT WINAPI GetOEMCP(void);
567 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
568 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
569 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
570 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
571 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
572 LANGID WINAPI GetSystemDefaultLangID(void);
573 LCID WINAPI GetSystemDefaultLCID(void);
574 LANGID WINAPI GetSystemDefaultUILanguage(void);
575 LCID WINAPI GetThreadLocale(void);
576 INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
577 INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
578 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
579 LANGID WINAPI GetUserDefaultLangID(void);
580 LCID WINAPI GetUserDefaultLCID(void);
581 LANGID WINAPI GetUserDefaultUILanguage(void);
582 BOOL WINAPI IsDBCSLeadByte(BYTE);
583 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
584 BOOL WINAPI IsValidCodePage(UINT);
585 BOOL WINAPI IsValidLocale(LCID,DWORD);
586 BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
587 INT WINAPI LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT);
588 INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT);
589 #define LCMapString WINELIB_NAME_AW(LCMapString)
590 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
591 BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR);
592 BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR);
593 #define SetLocaleInfo WINELIB_NAME_AW(SetLocaleInfo)
594 BOOL WINAPI SetThreadLocale(LCID);
595 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL);
597 #ifdef __cplusplus
599 #endif
601 #endif /* !NONLS */
602 #endif /* __WINE_WINNLS_H */