WinGit: update for new vim version
[msysgit/mtrensch.git] / mingw / include / winnls.h
blob140f9e97a10702dc2715a9936b6c7cc2d66521b9
1 #ifndef _WINNLS_H
2 #define _WINNLS_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
7 #ifndef WINBASEAPI
8 #ifdef __W32API_USE_DLLIMPORT__
9 #define WINBASEAPI DECLSPEC_IMPORT
10 #else
11 #define WINBASEAPI
12 #endif
13 #endif
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 #define MAX_LEADBYTES 12
20 #define MAX_DEFAULTCHAR 2
21 #define LOCALE_NOUSEROVERRIDE 0x80000000
22 #define LOCALE_USE_CP_ACP 0x40000000
23 #if (WINVER >= 0x0400)
24 #define LOCALE_RETURN_NUMBER 0x20000000
25 #endif
26 #define LOCALE_ILANGUAGE 1
27 #define LOCALE_SLANGUAGE 2
28 #define LOCALE_SENGLANGUAGE 0x1001
29 #define LOCALE_SABBREVLANGNAME 3
30 #define LOCALE_SNATIVELANGNAME 4
31 #define LOCALE_ICOUNTRY 5
32 #define LOCALE_SCOUNTRY 6
33 #define LOCALE_SENGCOUNTRY 0x1002
34 #define LOCALE_SABBREVCTRYNAME 7
35 #define LOCALE_SNATIVECTRYNAME 8
36 #define LOCALE_IDEFAULTLANGUAGE 9
37 #define LOCALE_IDEFAULTCOUNTRY 10
38 #define LOCALE_IDEFAULTCODEPAGE 11
39 #define LOCALE_IDEFAULTANSICODEPAGE 0x1004
40 #define LOCALE_SLIST 12
41 #define LOCALE_IMEASURE 13
42 #define LOCALE_SDECIMAL 14
43 #define LOCALE_STHOUSAND 15
44 #define LOCALE_SGROUPING 16
45 #define LOCALE_IDIGITS 17
46 #define LOCALE_ILZERO 18
47 #define LOCALE_INEGNUMBER 0x1010
48 #define LOCALE_SNATIVEDIGITS 19
49 #define LOCALE_SCURRENCY 20
50 #define LOCALE_SINTLSYMBOL 21
51 #define LOCALE_SMONDECIMALSEP 22
52 #define LOCALE_SMONTHOUSANDSEP 23
53 #define LOCALE_SMONGROUPING 24
54 #define LOCALE_ICURRDIGITS 25
55 #define LOCALE_IINTLCURRDIGITS 26
56 #define LOCALE_ICURRENCY 27
57 #define LOCALE_INEGCURR 28
58 #define LOCALE_SDATE 29
59 #define LOCALE_STIME 30
60 #define LOCALE_SSHORTDATE 31
61 #define LOCALE_SLONGDATE 32
62 #define LOCALE_STIMEFORMAT 0x1003
63 #define LOCALE_IDATE 33
64 #define LOCALE_ILDATE 34
65 #define LOCALE_ITIME 35
66 #define LOCALE_ITIMEMARKPOSN 0x1005
67 #define LOCALE_ICENTURY 36
68 #define LOCALE_ITLZERO 37
69 #define LOCALE_IDAYLZERO 38
70 #define LOCALE_IMONLZERO 39
71 #define LOCALE_S1159 40
72 #define LOCALE_S2359 41
73 #define LOCALE_ICALENDARTYPE 0x1009
74 #define LOCALE_IOPTIONALCALENDAR 0x100B
75 #define LOCALE_IFIRSTDAYOFWEEK 0x100C
76 #define LOCALE_IFIRSTWEEKOFYEAR 0x100D
77 #define LOCALE_SDAYNAME1 42
78 #define LOCALE_SDAYNAME2 43
79 #define LOCALE_SDAYNAME3 44
80 #define LOCALE_SDAYNAME4 45
81 #define LOCALE_SDAYNAME5 46
82 #define LOCALE_SDAYNAME6 47
83 #define LOCALE_SDAYNAME7 48
84 #define LOCALE_SABBREVDAYNAME1 49
85 #define LOCALE_SABBREVDAYNAME2 50
86 #define LOCALE_SABBREVDAYNAME3 51
87 #define LOCALE_SABBREVDAYNAME4 52
88 #define LOCALE_SABBREVDAYNAME5 53
89 #define LOCALE_SABBREVDAYNAME6 54
90 #define LOCALE_SABBREVDAYNAME7 55
91 #define LOCALE_SMONTHNAME1 56
92 #define LOCALE_SMONTHNAME2 57
93 #define LOCALE_SMONTHNAME3 58
94 #define LOCALE_SMONTHNAME4 59
95 #define LOCALE_SMONTHNAME5 60
96 #define LOCALE_SMONTHNAME6 61
97 #define LOCALE_SMONTHNAME7 62
98 #define LOCALE_SMONTHNAME8 63
99 #define LOCALE_SMONTHNAME9 64
100 #define LOCALE_SMONTHNAME10 65
101 #define LOCALE_SMONTHNAME11 66
102 #define LOCALE_SMONTHNAME12 67
103 #define LOCALE_SMONTHNAME13 0x100E
104 #define LOCALE_SABBREVMONTHNAME1 68
105 #define LOCALE_SABBREVMONTHNAME2 69
106 #define LOCALE_SABBREVMONTHNAME3 70
107 #define LOCALE_SABBREVMONTHNAME4 71
108 #define LOCALE_SABBREVMONTHNAME5 72
109 #define LOCALE_SABBREVMONTHNAME6 73
110 #define LOCALE_SABBREVMONTHNAME7 74
111 #define LOCALE_SABBREVMONTHNAME8 75
112 #define LOCALE_SABBREVMONTHNAME9 76
113 #define LOCALE_SABBREVMONTHNAME10 77
114 #define LOCALE_SABBREVMONTHNAME11 78
115 #define LOCALE_SABBREVMONTHNAME12 79
116 #define LOCALE_SABBREVMONTHNAME13 0x100F
117 #define LOCALE_SPOSITIVESIGN 80
118 #define LOCALE_SNEGATIVESIGN 81
119 #define LOCALE_IPOSSIGNPOSN 82
120 #define LOCALE_INEGSIGNPOSN 83
121 #define LOCALE_IPOSSYMPRECEDES 84
122 #define LOCALE_IPOSSEPBYSPACE 85
123 #define LOCALE_INEGSYMPRECEDES 86
124 #define LOCALE_INEGSEPBYSPACE 87
125 #define LOCALE_FONTSIGNATURE 88
126 #define LOCALE_SISO639LANGNAME 89
127 #define LOCALE_SISO3166CTRYNAME 90
128 #define LOCALE_SYSTEM_DEFAULT 0x800
129 #define LOCALE_USER_DEFAULT 0x400
130 #define NORM_IGNORECASE 1
131 #define NORM_IGNOREKANATYPE 65536
132 #define NORM_IGNORENONSPACE 2
133 #define NORM_IGNORESYMBOLS 4
134 #define NORM_IGNOREWIDTH 131072
135 #define SORT_STRINGSORT 4096
136 #define LCMAP_LOWERCASE 0x00000100
137 #define LCMAP_UPPERCASE 0x00000200
138 #define LCMAP_SORTKEY 0x00000400
139 #define LCMAP_BYTEREV 0x00000800
140 #define LCMAP_HIRAGANA 0x00100000
141 #define LCMAP_KATAKANA 0x00200000
142 #define LCMAP_HALFWIDTH 0x00400000
143 #define LCMAP_FULLWIDTH 0x00800000
144 #define LCMAP_LINGUISTIC_CASING 0x01000000
145 #define LCMAP_SIMPLIFIED_CHINESE 0x02000000
146 #define LCMAP_TRADITIONAL_CHINESE 0x04000000
147 #define ENUM_ALL_CALENDARS (-1)
148 #define DATE_SHORTDATE 1
149 #define DATE_LONGDATE 2
150 #define DATE_USE_ALT_CALENDAR 4
151 #define CP_INSTALLED 1
152 #define CP_SUPPORTED 2
153 #define LCID_INSTALLED 1
154 #define LCID_SUPPORTED 2
155 #define LCID_ALTERNATE_SORTS 4
156 #define MAP_FOLDCZONE 16
157 #define MAP_FOLDDIGITS 128
158 #define MAP_PRECOMPOSED 32
159 #define MAP_COMPOSITE 64
160 #define CP_ACP 0
161 #define CP_OEMCP 1
162 #define CP_MACCP 2
163 #define CP_THREAD_ACP 3
164 #define CP_SYMBOL 42
165 #define CP_UTF7 65000
166 #define CP_UTF8 65001
167 #define CT_CTYPE1 1
168 #define CT_CTYPE2 2
169 #define CT_CTYPE3 4
170 #define C1_UPPER 1
171 #define C1_LOWER 2
172 #define C1_DIGIT 4
173 #define C1_SPACE 8
174 #define C1_PUNCT 16
175 #define C1_CNTRL 32
176 #define C1_BLANK 64
177 #define C1_XDIGIT 128
178 #define C1_ALPHA 256
179 #define C2_LEFTTORIGHT 1
180 #define C2_RIGHTTOLEFT 2
181 #define C2_EUROPENUMBER 3
182 #define C2_EUROPESEPARATOR 4
183 #define C2_EUROPETERMINATOR 5
184 #define C2_ARABICNUMBER 6
185 #define C2_COMMONSEPARATOR 7
186 #define C2_BLOCKSEPARATOR 8
187 #define C2_SEGMENTSEPARATOR 9
188 #define C2_WHITESPACE 10
189 #define C2_OTHERNEUTRAL 11
190 #define C2_NOTAPPLICABLE 0
191 #define C3_NONSPACING 1
192 #define C3_DIACRITIC 2
193 #define C3_VOWELMARK 4
194 #define C3_SYMBOL 8
195 #define C3_KATAKANA 16
196 #define C3_HIRAGANA 32
197 #define C3_HALFWIDTH 64
198 #define C3_FULLWIDTH 128
199 #define C3_IDEOGRAPH 256
200 #define C3_KASHIDA 512
201 #define C3_LEXICAL 1024
202 #define C3_ALPHA 32768
203 #define C3_NOTAPPLICABLE 0
204 #define TIME_NOMINUTESORSECONDS 1
205 #define TIME_NOSECONDS 2
206 #define TIME_NOTIMEMARKER 4
207 #define TIME_FORCE24HOURFORMAT 8
208 #define MB_PRECOMPOSED 1
209 #define MB_COMPOSITE 2
210 #define MB_ERR_INVALID_CHARS 8
211 #define MB_USEGLYPHCHARS 4
212 #define WC_COMPOSITECHECK 512
213 #define WC_DISCARDNS 16
214 #define WC_SEPCHARS 32
215 #define WC_DEFAULTCHAR 64
216 #define CTRY_DEFAULT 0
217 #define CTRY_ALBANIA 355
218 #define CTRY_ALGERIA 213
219 #define CTRY_ARGENTINA 54
220 #define CTRY_ARMENIA 374
221 #define CTRY_AUSTRALIA 61
222 #define CTRY_AUSTRIA 43
223 #define CTRY_AZERBAIJAN 994
224 #define CTRY_BAHRAIN 973
225 #define CTRY_BELARUS 375
226 #define CTRY_BELGIUM 32
227 #define CTRY_BELIZE 501
228 #define CTRY_BOLIVIA 591
229 #define CTRY_BRAZIL 55
230 #define CTRY_BRUNEI_DARUSSALAM 673
231 #define CTRY_BULGARIA 359
232 #define CTRY_CANADA 2
233 #define CTRY_CARIBBEAN 1
234 #define CTRY_CHILE 56
235 #define CTRY_COLOMBIA 57
236 #define CTRY_COSTA_RICA 506
237 #define CTRY_CROATIA 385
238 #define CTRY_CZECH 420
239 #define CTRY_DENMARK 45
240 #define CTRY_DOMINICAN_REPUBLIC 1
241 #define CTRY_ECUADOR 593
242 #define CTRY_EGYPT 20
243 #define CTRY_EL_SALVADOR 503
244 #define CTRY_ESTONIA 372
245 #define CTRY_FAEROE_ISLANDS 298
246 #define CTRY_FINLAND 358
247 #define CTRY_FRANCE 33
248 #define CTRY_GEORGIA 995
249 #define CTRY_GERMANY 49
250 #define CTRY_GREECE 30
251 #define CTRY_GUATEMALA 502
252 #define CTRY_HONDURAS 504
253 #define CTRY_HONG_KONG 852
254 #define CTRY_HUNGARY 36
255 #define CTRY_ICELAND 354
256 #define CTRY_INDIA 91
257 #define CTRY_INDONESIA 62
258 #define CTRY_IRAN 981
259 #define CTRY_IRAQ 964
260 #define CTRY_IRELAND 353
261 #define CTRY_ISRAEL 972
262 #define CTRY_ITALY 39
263 #define CTRY_JAMAICA 1
264 #define CTRY_JAPAN 81
265 #define CTRY_JORDAN 962
266 #define CTRY_KAZAKSTAN 7
267 #define CTRY_KENYA 254
268 #define CTRY_KUWAIT 965
269 #define CTRY_KYRGYZSTAN 996
270 #define CTRY_LATVIA 371
271 #define CTRY_LEBANON 961
272 #define CTRY_LIBYA 218
273 #define CTRY_LIECHTENSTEIN 41
274 #define CTRY_LITHUANIA 370
275 #define CTRY_LUXEMBOURG 352
276 #define CTRY_MACAU 853
277 #define CTRY_MACEDONIA 389
278 #define CTRY_MALAYSIA 60
279 #define CTRY_MALDIVES 960
280 #define CTRY_MEXICO 52
281 #define CTRY_MONACO 33
282 #define CTRY_MONGOLIA 976
283 #define CTRY_MOROCCO 212
284 #define CTRY_NETHERLANDS 31
285 #define CTRY_NEW_ZEALAND 64
286 #define CTRY_NICARAGUA 505
287 #define CTRY_NORWAY 47
288 #define CTRY_OMAN 968
289 #define CTRY_PAKISTAN 92
290 #define CTRY_PANAMA 507
291 #define CTRY_PARAGUAY 595
292 #define CTRY_PERU 51
293 #define CTRY_PHILIPPINES 63
294 #define CTRY_POLAND 48
295 #define CTRY_PORTUGAL 351
296 #define CTRY_PRCHINA 86
297 #define CTRY_PUERTO_RICO 1
298 #define CTRY_QATAR 974
299 #define CTRY_ROMANIA 40
300 #define CTRY_RUSSIA 7
301 #define CTRY_SAUDI_ARABIA 966
302 #define CTRY_SERBIA 381
303 #define CTRY_SINGAPORE 65
304 #define CTRY_SLOVAK 421
305 #define CTRY_SLOVENIA 386
306 #define CTRY_SOUTH_AFRICA 27
307 #define CTRY_SOUTH_KOREA 82
308 #define CTRY_SPAIN 34
309 #define CTRY_SWEDEN 46
310 #define CTRY_SWITZERLAND 41
311 #define CTRY_SYRIA 963
312 #define CTRY_TAIWAN 886
313 #define CTRY_TATARSTAN 7
314 #define CTRY_THAILAND 66
315 #define CTRY_TRINIDAD_Y_TOBAGO 1
316 #define CTRY_TUNISIA 216
317 #define CTRY_TURKEY 90
318 #define CTRY_UAE 971
319 #define CTRY_UKRAINE 380
320 #define CTRY_UNITED_KINGDOM 44
321 #define CTRY_UNITED_STATES 1
322 #define CTRY_URUGUAY 598
323 #define CTRY_UZBEKISTAN 7
324 #define CTRY_VENEZUELA 58
325 #define CTRY_VIET_NAM 84
326 #define CTRY_YEMEN 967
327 #define CTRY_ZIMBABWE 263
328 #define CAL_ICALINTVALUE 1
329 #define CAL_SCALNAME 2
330 #define CAL_IYEAROFFSETRANGE 3
331 #define CAL_SERASTRING 4
332 #define CAL_SSHORTDATE 5
333 #define CAL_SLONGDATE 6
334 #define CAL_SDAYNAME1 7
335 #define CAL_SDAYNAME2 8
336 #define CAL_SDAYNAME3 9
337 #define CAL_SDAYNAME4 10
338 #define CAL_SDAYNAME5 11
339 #define CAL_SDAYNAME6 12
340 #define CAL_SDAYNAME7 13
341 #define CAL_SABBREVDAYNAME1 14
342 #define CAL_SABBREVDAYNAME2 15
343 #define CAL_SABBREVDAYNAME3 16
344 #define CAL_SABBREVDAYNAME4 17
345 #define CAL_SABBREVDAYNAME5 18
346 #define CAL_SABBREVDAYNAME6 19
347 #define CAL_SABBREVDAYNAME7 20
348 #define CAL_SMONTHNAME1 21
349 #define CAL_SMONTHNAME2 22
350 #define CAL_SMONTHNAME3 23
351 #define CAL_SMONTHNAME4 24
352 #define CAL_SMONTHNAME5 25
353 #define CAL_SMONTHNAME6 26
354 #define CAL_SMONTHNAME7 27
355 #define CAL_SMONTHNAME8 28
356 #define CAL_SMONTHNAME9 29
357 #define CAL_SMONTHNAME10 30
358 #define CAL_SMONTHNAME11 31
359 #define CAL_SMONTHNAME12 32
360 #define CAL_SMONTHNAME13 33
361 #define CAL_SABBREVMONTHNAME1 34
362 #define CAL_SABBREVMONTHNAME2 35
363 #define CAL_SABBREVMONTHNAME3 36
364 #define CAL_SABBREVMONTHNAME4 37
365 #define CAL_SABBREVMONTHNAME5 38
366 #define CAL_SABBREVMONTHNAME6 39
367 #define CAL_SABBREVMONTHNAME7 40
368 #define CAL_SABBREVMONTHNAME8 41
369 #define CAL_SABBREVMONTHNAME9 42
370 #define CAL_SABBREVMONTHNAME10 43
371 #define CAL_SABBREVMONTHNAME11 44
372 #define CAL_SABBREVMONTHNAME12 45
373 #define CAL_SABBREVMONTHNAME13 46
374 #define CAL_GREGORIAN 1
375 #define CAL_GREGORIAN_US 2
376 #define CAL_JAPAN 3
377 #define CAL_TAIWAN 4
378 #define CAL_KOREA 5
379 #define CAL_HIJRI 6
380 #define CAL_THAI 7
381 #define CAL_HEBREW 8
382 #define CAL_GREGORIAN_ME_FRENCH 9
383 #define CAL_GREGORIAN_ARABIC 10
384 #define CAL_GREGORIAN_XLIT_ENGLISH 11
385 #define CAL_GREGORIAN_XLIT_FRENCH 12
386 #define CSTR_LESS_THAN 1
387 #define CSTR_EQUAL 2
388 #define CSTR_GREATER_THAN 3
389 #define LGRPID_INSTALLED 1
390 #define LGRPID_SUPPORTED 2
391 #define LGRPID_WESTERN_EUROPE 1
392 #define LGRPID_CENTRAL_EUROPE 2
393 #define LGRPID_BALTIC 3
394 #define LGRPID_GREEK 4
395 #define LGRPID_CYRILLIC 5
396 #define LGRPID_TURKISH 6
397 #define LGRPID_JAPANESE 7
398 #define LGRPID_KOREAN 8
399 #define LGRPID_TRADITIONAL_CHINESE 9
400 #define LGRPID_SIMPLIFIED_CHINESE 10
401 #define LGRPID_THAI 11
402 #define LGRPID_HEBREW 12
403 #define LGRPID_ARABIC 13
404 #define LGRPID_VIETNAMESE 14
405 #define LGRPID_INDIC 15
406 #define LGRPID_GEORGIAN 16
407 #define LGRPID_ARMENIAN 17
408 #if (WINVER >= 0x0410)
409 #define CAL_SYEARMONTH 47
410 #define CAL_ITWODIGITYEARMAX 48
411 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
412 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
413 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
414 #define LOCALE_SYEARMONTH 0x1006
415 #define LOCALE_SENGCURRNAME 0x1007
416 #define LOCALE_SNATIVECURRNAME 0x1008
417 #define LOCALE_SSORTNAME 0x1013
418 #endif /* (WINVER >= 0x0410) */
419 #if (WINVER >= 0x0500)
420 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x1012
421 #define LOCALE_IDIGITSUBSTITUTION 0x1014
422 #define LOCALE_IPAPERSIZE 0x100A
423 #define DATE_YEARMONTH 8
424 #define DATE_LTRREADING 16
425 #define DATE_RTLREADING 32
426 #define MAP_EXPAND_LIGATURES 0x2000
427 #define WC_NO_BEST_FIT_CHARS 1024
428 #endif /* (WINVER >= 0x0500) */
429 #if (WINVER >= 0x0600)
430 /*#define CAL_SSHORTESTDAYNAME1 */
431 /*#define CAL_SSHORTESTDAYNAME2 */
432 /*#define CAL_SSHORTESTDAYNAME3 */
433 /*#define CAL_SSHORTESTDAYNAME4 */
434 /*#define CAL_SSHORTESTDAYNAME5 */
435 /*#define CAL_SSHORTESTDAYNAME6 */
436 /*#define CAL_SSHORTESTDAYNAME7 */
437 #define CAL_UMALQURA 23
438 /*#define LOCALE_SDURATION */
439 /*#define LOCALE_SIETFLANGUAGE */
440 /*#define LOCALE_SISO3166CTRYNAME2 */
441 /*#define LOCALE_SISO639LANGNAME2 */
442 /*#define LOCALE_SKEYBOARDSTOINSTALL */
443 /*#define LOCALE_SNAME */
444 /*#define LOCALE_SNAN */
445 /*#define LOCALE_SNEGINFINITY */
446 /*#define LOCALE_SPOSINFINITY */
447 /*#define LOCALE_SSCRIPTS */
448 #endif /* (WINVER >= 0x0600) */
449 #ifndef _BASETSD_H
450 typedef long LONG_PTR;
451 #endif
453 #ifndef RC_INVOKED
454 typedef DWORD LCTYPE;
455 typedef DWORD CALTYPE;
456 typedef DWORD CALID;
457 typedef DWORD LGRPID;
458 typedef DWORD GEOID;
459 typedef DWORD GEOTYPE;
460 typedef DWORD GEOCLASS;
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 *LANGUAGEGROUP_ENUMPROCA)(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR);
466 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR);
467 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID, LCID, LPSTR, LONG_PTR);
468 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID, LCID, LPWSTR, LONG_PTR);
469 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCW)(LPWSTR, LONG_PTR);
470 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCA)(LPSTR, LONG_PTR);
471 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
472 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
473 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
474 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
475 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
476 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
477 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR, CALID);
478 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR, CALID);
479 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
480 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
481 typedef BOOL (CALLBACK *GEO_ENUMPROC)(GEOID);
483 enum NLS_FUNCTION {
484 COMPARE_STRING = 0x0001
486 typedef enum NLS_FUNCTION NLS_FUNCTION;
487 enum SYSGEOCLASS {
488 GEOCLASS_NATION = 16,
489 GEOCLASS_REGION = 14
491 enum SYSGEOTYPE {
492 GEO_NATION = 0x0001,
493 GEO_LATITUDE = 0x0002,
494 GEO_LONGITUDE = 0x0003,
495 GEO_ISO2 = 0x0004,
496 GEO_ISO3 = 0x0005,
497 GEO_RFC1766 = 0x0006,
498 GEO_LCID = 0x0007,
499 GEO_FRIENDLYNAME = 0x0008,
500 GEO_OFFICIALNAME = 0x0009,
501 GEO_TIMEZONES = 0x000a,
502 GEO_OFFICIALLANGUAGES = 0x000a
505 typedef struct _cpinfo {
506 UINT MaxCharSize;
507 BYTE DefaultChar[MAX_DEFAULTCHAR];
508 BYTE LeadByte[MAX_LEADBYTES];
509 } CPINFO,*LPCPINFO;
510 typedef struct _cpinfoexA {
511 UINT MaxCharSize;
512 BYTE DefaultChar[MAX_DEFAULTCHAR];
513 BYTE LeadByte[MAX_LEADBYTES];
514 WCHAR UnicodeDefaultChar;
515 UINT CodePage;
516 CHAR CodePageName[MAX_PATH];
517 } CPINFOEXA,*LPCPINFOEXA;
518 typedef struct _cpinfoexW {
519 UINT MaxCharSize;
520 BYTE DefaultChar[MAX_DEFAULTCHAR];
521 BYTE LeadByte[MAX_LEADBYTES];
522 WCHAR UnicodeDefaultChar;
523 UINT CodePage;
524 WCHAR CodePageName[MAX_PATH];
525 } CPINFOEXW,*LPCPINFOEXW;
526 typedef struct _currencyfmtA {
527 UINT NumDigits;
528 UINT LeadingZero;
529 UINT Grouping;
530 LPSTR lpDecimalSep;
531 LPSTR lpThousandSep;
532 UINT NegativeOrder;
533 UINT PositiveOrder;
534 LPSTR lpCurrencySymbol;
535 } CURRENCYFMTA,*LPCURRENCYFMTA;
536 typedef struct _currencyfmtW {
537 UINT NumDigits;
538 UINT LeadingZero;
539 UINT Grouping;
540 LPWSTR lpDecimalSep;
541 LPWSTR lpThousandSep;
542 UINT NegativeOrder;
543 UINT PositiveOrder;
544 LPWSTR lpCurrencySymbol;
545 } CURRENCYFMTW,*LPCURRENCYFMTW;
546 typedef struct nlsversioninfo {
547 DWORD dwNLSVersionInfoSize;
548 DWORD dwNLSVersion;
549 DWORD dwDefinedVersion;
550 } NLSVERSIONINFO,*LPNLSVERSIONINFO;
551 typedef struct _numberfmtA {
552 UINT NumDigits;
553 UINT LeadingZero;
554 UINT Grouping;
555 LPSTR lpDecimalSep;
556 LPSTR lpThousandSep;
557 UINT NegativeOrder;
558 } NUMBERFMTA,*LPNUMBERFMTA;
559 typedef struct _numberfmtW {
560 UINT NumDigits;
561 UINT LeadingZero;
562 UINT Grouping;
563 LPWSTR lpDecimalSep;
564 LPWSTR lpThousandSep;
565 UINT NegativeOrder;
566 } NUMBERFMTW,*LPNUMBERFMTW;
568 WINBASEAPI int WINAPI CompareStringA(LCID,DWORD,LPCSTR,int,LPCSTR,int);
569 WINBASEAPI int WINAPI CompareStringW(LCID,DWORD,LPCWSTR,int,LPCWSTR,int);
570 WINBASEAPI LCID WINAPI ConvertDefaultLocale(LCID);
571 WINBASEAPI BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE);
572 WINBASEAPI BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE);
573 WINBASEAPI BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD);
574 WINBASEAPI BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD);
575 WINBASEAPI BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
576 WINBASEAPI BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
577 WINBASEAPI BOOL WINAPI EnumSystemGeoID(GEOCLASS,GEOID,GEO_ENUMPROC);
578 WINBASEAPI BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
579 WINBASEAPI BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
580 WINBASEAPI BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD);
581 WINBASEAPI BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD);
582 WINBASEAPI int WINAPI FoldStringA(DWORD,LPCSTR,int,LPSTR,int);
583 WINBASEAPI int WINAPI FoldStringW(DWORD,LPCWSTR,int,LPWSTR,int);
584 WINBASEAPI UINT WINAPI GetACP(void);
585 WINBASEAPI int WINAPI GetCalendarInfoA(LCID,CALID,CALTYPE,LPSTR,int,LPDWORD);
586 WINBASEAPI int WINAPI GetCalendarInfoW(LCID,CALID,CALTYPE,LPWSTR,int,LPDWORD);
587 WINBASEAPI BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
588 WINBASEAPI BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA);
589 WINBASEAPI BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW);
590 WINBASEAPI int WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,int);
591 WINBASEAPI int WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,int);
592 WINBASEAPI int WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,int);
593 WINBASEAPI int WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,int);
594 WINBASEAPI int WINAPI GetGeoInfoA(GEOID,GEOTYPE,LPSTR,int,LANGID);
595 WINBASEAPI int WINAPI GetGeoInfoW(GEOID,GEOTYPE,LPWSTR,int,LANGID);
596 WINBASEAPI int WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,int);
597 WINBASEAPI int WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,int);
598 WINBASEAPI BOOL WINAPI GetNLSVersion(NLS_FUNCTION,LCID,LPNLSVERSIONINFO);
599 WINBASEAPI int WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
600 WINBASEAPI int WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
601 WINBASEAPI UINT WINAPI GetOEMCP(void);
602 WINBASEAPI BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,int,LPWORD);
603 WINBASEAPI BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,int,LPWORD);
604 WINBASEAPI BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,int,LPWORD);
605 WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,int,LPWORD);
606 WINBASEAPI LANGID WINAPI GetSystemDefaultLangID(void);
607 WINBASEAPI LCID WINAPI GetSystemDefaultLCID(void);
608 WINBASEAPI LCID WINAPI GetThreadLocale(void);
609 WINBASEAPI int WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,int);
610 WINBASEAPI int WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,int);
611 WINBASEAPI LANGID WINAPI GetUserDefaultLangID(void);
612 WINBASEAPI LCID WINAPI GetUserDefaultLCID(void);
613 WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS);
614 WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);
615 WINBASEAPI BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
616 WINBASEAPI BOOL WINAPI IsNLSDefinedString(NLS_FUNCTION,DWORD,LPNLSVERSIONINFO,LPCWSTR,int);
617 WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
618 WINBASEAPI BOOL WINAPI IsValidLocale(LCID,DWORD);
619 WINBASEAPI int WINAPI LCMapStringA(LCID,DWORD,LPCSTR,int,LPSTR,int);
620 WINBASEAPI int WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,int,LPWSTR,int);
621 WINBASEAPI int WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,int,LPWSTR,int);
622 WINBASEAPI int WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR);
623 WINBASEAPI int WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
624 WINBASEAPI BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR);
625 WINBASEAPI BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR);
626 WINBASEAPI BOOL WINAPI SetThreadLocale(LCID);
627 WINBASEAPI BOOL WINAPI SetUserGeoID(GEOID);
628 WINBASEAPI int WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,int,LPSTR,int,LPCSTR,LPBOOL);
629 #if (WINVER >= 0x0500)
630 WINBASEAPI BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE);
631 WINBASEAPI BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE);
632 WINBASEAPI BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD);
633 WINBASEAPI BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD);
634 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR);
635 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR);
636 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR);
637 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR);
638 WINBASEAPI BOOL WINAPI EnumUILanguagesA(UILANGUAGE_ENUMPROCA,DWORD,LONG_PTR);
639 WINBASEAPI BOOL WINAPI EnumUILanguagesW(UILANGUAGE_ENUMPROCW,DWORD,LONG_PTR);
640 WINBASEAPI LANGID WINAPI GetSystemDefaultUILanguage(void);
641 WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
642 WINBASEAPI BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
643 #endif /* (WINVER >= 0x0500) */
645 #ifdef UNICODE
646 #define CALINFO_ENUMPROC CALINFO_ENUMPROCW
647 #define CALINFO_ENUMPROCEX CALINFO_ENUMPROCEXW
648 #define LOCALE_ENUMPROC LOCALE_ENUMPROCW
649 #define CODEPAGE_ENUMPROC CODEPAGE_ENUMPROCW
650 #define DATEFMT_ENUMPROC DATEFMT_ENUMPROCW
651 #define DATEFMT_ENUMPROCEX DATEFMT_ENUMPROCEXW
652 #define TIMEFMT_ENUMPROC TIMEFMT_ENUMPROCW
653 #define LANGUAGEGROUP_ENUMPROC LANGUAGEGROUP_ENUMPROCW
654 #define LANGGROUPLOCALE_ENUMPROC LANGGROUPLOCALE_ENUMPROCW
655 #define UILANGUAGE_ENUMPROC UILANGUAGE_ENUMPROCW
656 typedef CPINFOEXW CPINFOEX;
657 typedef LPCPINFOEXW LPCPINFOEX;
658 typedef CURRENCYFMTW CURRENCYFMT;
659 typedef LPCURRENCYFMTW LPCURRENCYFMT;
660 typedef NUMBERFMTW NUMBERFMT;
661 typedef LPNUMBERFMTW LPNUMBERFMT;
662 #define CompareString CompareStringW
663 #define EnumCalendarInfo EnumCalendarInfoW
664 #define EnumSystemCodePages EnumSystemCodePagesW
665 #define EnumSystemLocales EnumSystemLocalesW
666 #define EnumTimeFormats EnumTimeFormatsW
667 #define FoldString FoldStringW
668 #define GetCalendarInfo GetCalendarInfoW
669 #define GetCPInfoEx GetCPInfoExW
670 #define GetCurrencyFormat GetCurrencyFormatW
671 #define GetDateFormat GetDateFormatW
672 #define GetGeoInfo GetGeoInfoW
673 #define GetLocaleInfo GetLocaleInfoW
674 #define GetNumberFormat GetNumberFormatW
675 #define GetStringTypeEx GetStringTypeExW
676 #define GetTimeFormat GetTimeFormatW
677 #define LCMapString LCMapStringW
678 #define SetCalendarInfo SetCalendarInfoW
679 #define SetLocaleInfo SetLocaleInfoW
680 #if (WINVER >= 0x0500)
681 #define EnumCalendarInfoEx EnumCalendarInfoExW
682 #define EnumDateFormatsEx EnumDateFormatsExW
683 #define EnumSystemLanguageGroups EnumSystemLanguageGroupsW
684 #define EnumLanguageGroupLocales EnumLanguageGroupLocalesW
685 #define EnumUILanguages EnumUILanguagesW
686 #endif /* (WINVER >= 0x0500) */
687 #else
688 #define CALINFO_ENUMPROC CALINFO_ENUMPROCA
689 #define CALINFO_ENUMPROCEX CALINFO_ENUMPROCEXA
690 #define LOCALE_ENUMPROC LOCALE_ENUMPROCA
691 #define CODEPAGE_ENUMPROC CODEPAGE_ENUMPROCA
692 #define DATEFMT_ENUMPROC DATEFMT_ENUMPROCA
693 #define DATEFMT_ENUMPROCEX DATEFMT_ENUMPROCEXA
694 #define TIMEFMT_ENUMPROC TIMEFMT_ENUMPROCA
695 #define LANGUAGEGROUP_ENUMPROC LANGUAGEGROUP_ENUMPROCA
696 #define LANGGROUPLOCALE_ENUMPROC LANGGROUPLOCALE_ENUMPROCA
697 #define UILANGUAGE_ENUMPROC UILANGUAGE_ENUMPROCA
698 typedef CPINFOEXA CPINFOEX;
699 typedef LPCPINFOEXA LPCPINFOEX;
700 typedef CURRENCYFMTA CURRENCYFMT;
701 typedef LPCURRENCYFMTA LPCURRENCYFMT;
702 typedef NUMBERFMTA NUMBERFMT;
703 typedef LPNUMBERFMTA LPNUMBERFMT;
704 #define CompareString CompareStringA
705 #define EnumCalendarInfo EnumCalendarInfoA
706 #define EnumSystemCodePages EnumSystemCodePagesA
707 #define EnumSystemLocales EnumSystemLocalesA
708 #define EnumTimeFormats EnumTimeFormatsA
709 #define FoldString FoldStringA
710 #define GetCalendarInfo GetCalendarInfoA
711 #define GetCPInfoEx GetCPInfoExA
712 #define GetCurrencyFormat GetCurrencyFormatA
713 #define GetDateFormat GetDateFormatA
714 #define GetGeoInfo GetGeoInfoA
715 #define GetLocaleInfo GetLocaleInfoA
716 #define GetNumberFormat GetNumberFormatA
717 #define GetStringTypeEx GetStringTypeExA
718 #define GetTimeFormat GetTimeFormatA
719 #define LCMapString LCMapStringA
720 #define SetCalendarInfo SetCalendarInfoA
721 #define SetLocaleInfo SetLocaleInfoA
722 #if (WINVER >= 0x0500)
723 #define EnumCalendarInfoEx EnumCalendarInfoExA
724 #define EnumDateFormatsEx EnumDateFormatsExA
725 #define EnumSystemLanguageGroups EnumSystemLanguageGroupsA
726 #define EnumLanguageGroupLocales EnumLanguageGroupLocalesA
727 #define EnumUILanguages EnumUILanguagesA
728 #endif /* (WINVER >= 0x0500) */
729 #endif /* UNICODE */
730 #endif /* RC_INVOKED */
731 #ifdef __cplusplus
733 #endif
734 #endif