jscript: Update the Polish translation.
[wine/zf.git] / include / winnls.h
blobadefcee85e7ce1de6ed569d89a2b3e8d915686d2
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_WINNLS_H
20 #define __WINE_WINNLS_H
21 #ifndef NONLS
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 /* Country codes */
28 #define CTRY_DEFAULT (0)
29 #define CTRY_ALBANIA (355)
30 #define CTRY_ALGERIA (213)
31 #define CTRY_ARGENTINA (54)
32 #define CTRY_ARMENIA (374)
33 #define CTRY_AUSTRALIA (61)
34 #define CTRY_AUSTRIA (43)
35 #define CTRY_AZERBAIJAN (994)
36 #define CTRY_BAHRAIN (973)
37 #define CTRY_BELARUS (375)
38 #define CTRY_BELGIUM (32)
39 #define CTRY_BELIZE (501)
40 #define CTRY_BOLIVIA (591)
41 #define CTRY_BRAZIL (55)
42 #define CTRY_BRUNEI_DARUSSALAM (673)
43 #define CTRY_BULGARIA (359)
44 #define CTRY_CANADA (2)
45 #define CTRY_CARIBBEAN (1)
46 #define CTRY_CHILE (56)
47 #define CTRY_COLOMBIA (57)
48 #define CTRY_COSTA_RICA (506)
49 #define CTRY_CROATIA (385)
50 #define CTRY_CZECH (420)
51 #define CTRY_DENMARK (45)
52 #define CTRY_DOMINICAN_REPUBLIC (1)
53 #define CTRY_ECUADOR (593)
54 #define CTRY_EGYPT (20)
55 #define CTRY_EL_SALVADOR (503)
56 #define CTRY_ESTONIA (372)
57 #define CTRY_FAEROE_ISLANDS (298)
58 #define CTRY_FINLAND (358)
59 #define CTRY_FRANCE (33)
60 #define CTRY_GEORGIA (995)
61 #define CTRY_GERMANY (49)
62 #define CTRY_GREECE (30)
63 #define CTRY_GUATEMALA (502)
64 #define CTRY_HONDURAS (504)
65 #define CTRY_HONG_KONG (852)
66 #define CTRY_HUNGARY (36)
67 #define CTRY_ICELAND (354)
68 #define CTRY_INDIA (91)
69 #define CTRY_INDONESIA (62)
70 #define CTRY_IRAN (981)
71 #define CTRY_IRAQ (964)
72 #define CTRY_IRELAND (353)
73 #define CTRY_ISRAEL (972)
74 #define CTRY_ITALY (39)
75 #define CTRY_JAMAICA (1)
76 #define CTRY_JAPAN (81)
77 #define CTRY_JORDAN (962)
78 #define CTRY_KAZAKSTAN (7)
79 #define CTRY_KENYA (254)
80 #define CTRY_KUWAIT (965)
81 #define CTRY_KYRGYZSTAN (996)
82 #define CTRY_LATVIA (371)
83 #define CTRY_LEBANON (961)
84 #define CTRY_LIBYA (218)
85 #define CTRY_LIECHTENSTEIN (41)
86 #define CTRY_LITHUANIA (370)
87 #define CTRY_LUXEMBOURG (352)
88 #define CTRY_MACAU (853)
89 #define CTRY_MACEDONIA (389)
90 #define CTRY_MALAYSIA (60)
91 #define CTRY_MALDIVES (960)
92 #define CTRY_MEXICO (52)
93 #define CTRY_MONACO (33)
94 #define CTRY_MONGOLIA (976)
95 #define CTRY_MOROCCO (212)
96 #define CTRY_NETHERLANDS (31)
97 #define CTRY_NEW_ZEALAND (64)
98 #define CTRY_NICARAGUA (505)
99 #define CTRY_NORWAY (47)
100 #define CTRY_OMAN (968)
101 #define CTRY_PAKISTAN (92)
102 #define CTRY_PANAMA (507)
103 #define CTRY_PARAGUAY (595)
104 #define CTRY_PERU (51)
105 #define CTRY_PHILIPPINES (63)
106 #define CTRY_POLAND (48)
107 #define CTRY_PORTUGAL (351)
108 #define CTRY_PRCHINA (86)
109 #define CTRY_PUERTO_RICO (1)
110 #define CTRY_QATAR (974)
111 #define CTRY_ROMANIA (40)
112 #define CTRY_RUSSIA (7)
113 #define CTRY_SAUDI_ARABIA (966)
114 #define CTRY_SERBIA (381)
115 #define CTRY_SINGAPORE (65)
116 #define CTRY_SLOVAK (421)
117 #define CTRY_SLOVENIA (386)
118 #define CTRY_SOUTH_AFRICA (27)
119 #define CTRY_SOUTH_KOREA (82)
120 #define CTRY_SPAIN (34)
121 #define CTRY_SWEDEN (46)
122 #define CTRY_SWITZERLAND (41)
123 #define CTRY_SYRIA (963)
124 #define CTRY_TAIWAN (886)
125 #define CTRY_TATARSTAN (7)
126 #define CTRY_THAILAND (66)
127 #define CTRY_TRINIDAD_Y_TOBAGO (1)
128 #define CTRY_TUNISIA (216)
129 #define CTRY_TURKEY (90)
130 #define CTRY_UAE (971)
131 #define CTRY_UKRAINE (380)
132 #define CTRY_UNITED_KINGDOM (44)
133 #define CTRY_UNITED_STATES (1)
134 #define CTRY_URUGUAY (598)
135 #define CTRY_UZBEKISTAN (7)
136 #define CTRY_VENEZUELA (58)
137 #define CTRY_VIET_NAM (84)
138 #define CTRY_YEMEN (967)
139 #define CTRY_ZIMBABWE (263)
141 #define MB_PRECOMPOSED 0x01
142 #define MB_COMPOSITE 0x02
143 #define MB_USEGLYPHCHARS 0x04
144 #define MB_ERR_INVALID_CHARS 0x08
146 #define LGRPID_INSTALLED 0x1
147 #define LGRPID_SUPPORTED 0x2
149 #define LCID_INSTALLED 0x1
150 #define LCID_SUPPORTED 0x2
151 #define LCID_ALTERNATE_SORTS 0x4
153 #define LOCALE_ALL 0x00
154 #define LOCALE_WINDOWS 0x01
155 #define LOCALE_SUPPLEMENTAL 0x02
156 #define LOCALE_ALTERNATE_SORTS 0x04
157 #define LOCALE_REPLACEMENT 0x08
158 #define LOCALE_NEUTRALDATA 0x10
159 #define LOCALE_SPECIFICDATA 0x20
161 /* Locale flags */
162 #define LOCALE_NOUSEROVERRIDE 0x80000000
163 #define LOCALE_USE_CP_ACP 0x40000000
164 #define LOCALE_RETURN_NUMBER 0x20000000
165 #define LOCALE_RETURN_GENITIVE_NAMES 0x10000000
167 /* Locale information types */
168 #define LOCALE_ILANGUAGE 0x0001
169 #define LOCALE_SLANGUAGE 0x0002
170 #define LOCALE_SENGLANGUAGE 0x1001
171 #define LOCALE_SABBREVLANGNAME 0x0003
172 #define LOCALE_SNATIVELANGNAME 0x0004
173 #define LOCALE_ICOUNTRY 0x0005
174 #define LOCALE_SCOUNTRY 0x0006
175 #define LOCALE_SENGCOUNTRY 0x1002
176 #define LOCALE_SABBREVCTRYNAME 0x0007
177 #define LOCALE_SNATIVECTRYNAME 0x0008
178 #define LOCALE_IDEFAULTLANGUAGE 0x0009
179 #define LOCALE_IDEFAULTCOUNTRY 0x000A
180 #define LOCALE_IDEFAULTCODEPAGE 0x000B
181 #define LOCALE_IDEFAULTANSICODEPAGE 0x1004
182 #define LOCALE_IDEFAULTMACCODEPAGE 0x1011
183 #define LOCALE_SLIST 0x000C
184 #define LOCALE_IMEASURE 0x000D
185 #define LOCALE_SDECIMAL 0x000E
186 #define LOCALE_STHOUSAND 0x000F
187 #define LOCALE_SGROUPING 0x0010
188 #define LOCALE_IDIGITS 0x0011
189 #define LOCALE_ILZERO 0x0012
190 #define LOCALE_INEGNUMBER 0x1010
191 #define LOCALE_SNATIVEDIGITS 0x0013
192 #define LOCALE_SCURRENCY 0x0014
193 #define LOCALE_SINTLSYMBOL 0x0015
194 #define LOCALE_SMONDECIMALSEP 0x0016
195 #define LOCALE_SMONTHOUSANDSEP 0x0017
196 #define LOCALE_SMONGROUPING 0x0018
197 #define LOCALE_ICURRDIGITS 0x0019
198 #define LOCALE_IINTLCURRDIGITS 0x001A
199 #define LOCALE_ICURRENCY 0x001B
200 #define LOCALE_INEGCURR 0x001C
201 #define LOCALE_SDATE 0x001D
202 #define LOCALE_STIME 0x001E
203 #define LOCALE_SSHORTDATE 0x001F
204 #define LOCALE_SLONGDATE 0x0020
205 #define LOCALE_STIMEFORMAT 0x1003
206 #define LOCALE_IDATE 0x0021
207 #define LOCALE_ILDATE 0x0022
208 #define LOCALE_ITIME 0x0023
209 #define LOCALE_ITIMEMARKPOSN 0x1005
210 #define LOCALE_ICENTURY 0x0024
211 #define LOCALE_ITLZERO 0x0025
212 #define LOCALE_IDAYLZERO 0x0026
213 #define LOCALE_IMONLZERO 0x0027
214 #define LOCALE_S1159 0x0028
215 #define LOCALE_S2359 0x0029
216 #define LOCALE_ICALENDARTYPE 0x1009
217 #define LOCALE_IOPTIONALCALENDAR 0x100B
218 #define LOCALE_IFIRSTDAYOFWEEK 0x100C
219 #define LOCALE_IFIRSTWEEKOFYEAR 0x100D
220 #define LOCALE_SDAYNAME1 0x002A
221 #define LOCALE_SDAYNAME2 0x002B
222 #define LOCALE_SDAYNAME3 0x002C
223 #define LOCALE_SDAYNAME4 0x002D
224 #define LOCALE_SDAYNAME5 0x002E
225 #define LOCALE_SDAYNAME6 0x002F
226 #define LOCALE_SDAYNAME7 0x0030
227 #define LOCALE_SABBREVDAYNAME1 0x0031
228 #define LOCALE_SABBREVDAYNAME2 0x0032
229 #define LOCALE_SABBREVDAYNAME3 0x0033
230 #define LOCALE_SABBREVDAYNAME4 0x0034
231 #define LOCALE_SABBREVDAYNAME5 0x0035
232 #define LOCALE_SABBREVDAYNAME6 0x0036
233 #define LOCALE_SABBREVDAYNAME7 0x0037
234 #define LOCALE_SMONTHNAME1 0x0038
235 #define LOCALE_SMONTHNAME2 0x0039
236 #define LOCALE_SMONTHNAME3 0x003A
237 #define LOCALE_SMONTHNAME4 0x003B
238 #define LOCALE_SMONTHNAME5 0x003C
239 #define LOCALE_SMONTHNAME6 0x003D
240 #define LOCALE_SMONTHNAME7 0x003E
241 #define LOCALE_SMONTHNAME8 0x003F
242 #define LOCALE_SMONTHNAME9 0x0040
243 #define LOCALE_SMONTHNAME10 0x0041
244 #define LOCALE_SMONTHNAME11 0x0042
245 #define LOCALE_SMONTHNAME12 0x0043
246 #define LOCALE_SMONTHNAME13 0x100E
247 #define LOCALE_SABBREVMONTHNAME1 0x0044
248 #define LOCALE_SABBREVMONTHNAME2 0x0045
249 #define LOCALE_SABBREVMONTHNAME3 0x0046
250 #define LOCALE_SABBREVMONTHNAME4 0x0047
251 #define LOCALE_SABBREVMONTHNAME5 0x0048
252 #define LOCALE_SABBREVMONTHNAME6 0x0049
253 #define LOCALE_SABBREVMONTHNAME7 0x004A
254 #define LOCALE_SABBREVMONTHNAME8 0x004B
255 #define LOCALE_SABBREVMONTHNAME9 0x004C
256 #define LOCALE_SABBREVMONTHNAME10 0x004D
257 #define LOCALE_SABBREVMONTHNAME11 0x004E
258 #define LOCALE_SABBREVMONTHNAME12 0x004F
259 #define LOCALE_SABBREVMONTHNAME13 0x100F
260 #define LOCALE_SPOSITIVESIGN 0x0050
261 #define LOCALE_SNEGATIVESIGN 0x0051
262 #define LOCALE_IPOSSIGNPOSN 0x0052
263 #define LOCALE_INEGSIGNPOSN 0x0053
264 #define LOCALE_IPOSSYMPRECEDES 0x0054
265 #define LOCALE_IPOSSEPBYSPACE 0x0055
266 #define LOCALE_INEGSYMPRECEDES 0x0056
267 #define LOCALE_INEGSEPBYSPACE 0x0057
268 #define LOCALE_FONTSIGNATURE 0x0058
269 #define LOCALE_SISO639LANGNAME 0x0059
270 #define LOCALE_SISO3166CTRYNAME 0x005A
271 #define LOCALE_SNAME 0x005C
272 #define LOCALE_SDURATION 0x005D
273 #define LOCALE_SKEYBOARDSTOINSTALL 0x005E
274 #define LOCALE_SSHORTESTDAYNAME1 0x0060
275 #define LOCALE_SSHORTESTDAYNAME2 0x0061
276 #define LOCALE_SSHORTESTDAYNAME3 0x0062
277 #define LOCALE_SSHORTESTDAYNAME4 0x0063
278 #define LOCALE_SSHORTESTDAYNAME5 0x0064
279 #define LOCALE_SSHORTESTDAYNAME6 0x0065
280 #define LOCALE_SSHORTESTDAYNAME7 0x0066
281 #define LOCALE_SISO639LANGNAME2 0x0067
282 #define LOCALE_SISO3166CTRYNAME2 0x0068
283 #define LOCALE_SNAN 0x0069
284 #define LOCALE_SPOSINFINITY 0x006A
285 #define LOCALE_SNEGINFINITY 0x006B
286 #define LOCALE_SSCRIPTS 0x006C
287 #define LOCALE_SPARENT 0x006D
288 #define LOCALE_SCONSOLEFALLBACKNAME 0x006E
289 #define LOCALE_SLANGDISPLAYNAME 0x006F
290 #define LOCALE_IREADINGLAYOUT 0x0070
291 #define LOCALE_INEUTRAL 0x0071
292 #define LOCALE_INEGATIVEPERCENT 0x0074
293 #define LOCALE_IPOSITIVEPERCENT 0x0075
294 #define LOCALE_SPERCENT 0x0076
295 #define LOCALE_SPERMILLE 0x0077
296 #define LOCALE_SMONTHDAY 0x0078
297 #define LOCALE_SSHORTTIME 0x0079
298 #define LOCALE_SOPENTYPELANGUAGETAG 0X007A
299 #define LOCALE_SSORTLOCALE 0x007B
301 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x1012
302 #define LOCALE_IPAPERSIZE 0x100A
303 #define LOCALE_SENGCURRNAME 0x1007
304 #define LOCALE_SNATIVECURRNAME 0x1008
305 #define LOCALE_SYEARMONTH 0x1006
306 #define LOCALE_SSORTNAME 0x1013
307 #define LOCALE_IDIGITSUBSTITUTION 0x1014
309 #define LOCALE_IDEFAULTUNIXCODEPAGE 0x1030 /* Wine extension */
311 #define NORM_IGNORECASE 0x00001
312 #define NORM_IGNORENONSPACE 0x00002
313 #define NORM_IGNORESYMBOLS 0x00004
314 #define NORM_STRINGSORT 0x01000
315 #define NORM_IGNOREKANATYPE 0x10000
316 #define NORM_IGNOREWIDTH 0x20000
318 #define CP_ACP 0
319 #define CP_OEMCP 1
320 #define CP_MACCP 2
321 #define CP_THREAD_ACP 3
322 #define CP_SYMBOL 42
323 #define CP_UTF7 65000
324 #define CP_UTF8 65001
326 #define CP_UNIXCP 65010 /* Wine extension */
328 #define CP_INSTALLED 0x1
329 #define CP_SUPPORTED 0x2
331 #define HIGH_SURROGATE_START 0xd800
332 #define HIGH_SURROGATE_END 0xdbff
333 #define LOW_SURROGATE_START 0xdc00
334 #define LOW_SURROGATE_END 0xdfff
336 #define IS_HIGH_SURROGATE(ch) ((ch) >= HIGH_SURROGATE_START && (ch) <= HIGH_SURROGATE_END)
337 #define IS_LOW_SURROGATE(ch) ((ch) >= LOW_SURROGATE_START && (ch) <= LOW_SURROGATE_END)
338 #define IS_SURROGATE_PAIR(high,low) (IS_HIGH_SURROGATE(high) && IS_LOW_SURROGATE(low))
340 #define WC_DISCARDNS 0x0010
341 #define WC_SEPCHARS 0x0020
342 #define WC_DEFAULTCHAR 0x0040
343 #define WC_ERR_INVALID_CHARS 0x0080
344 #define WC_COMPOSITECHECK 0x0200
345 #define WC_NO_BEST_FIT_CHARS 0x0400
347 #define MAP_FOLDCZONE 0x0010
348 #define MAP_PRECOMPOSED 0x0020
349 #define MAP_COMPOSITE 0x0040
350 #define MAP_FOLDDIGITS 0x0080
351 #define MAP_EXPAND_LIGATURES 0x2000
354 /* String mapping flags */
355 #define LCMAP_LOWERCASE 0x00000100 /* Make lower-case */
356 #define LCMAP_UPPERCASE 0x00000200 /* Make upper-case */
357 #define LCMAP_SORTKEY 0x00000400 /* Create a sort key */
358 #define LCMAP_BYTEREV 0x00000800 /* Reverse the result */
360 #define SORT_STRINGSORT 0x00001000 /* Take punctuation into account */
362 #define LCMAP_HIRAGANA 0x00100000 /* Transform Japanese katakana into hiragana */
363 #define LCMAP_KATAKANA 0x00200000 /* Transform Japanese hiragana into katakana */
364 #define LCMAP_HALFWIDTH 0x00400000 /* Use single byte chars in output */
365 #define LCMAP_FULLWIDTH 0x00800000 /* Use double byte chars in output */
367 #define LCMAP_LINGUISTIC_CASING 0x01000000 /* Change case by using language context */
368 #define LCMAP_SIMPLIFIED_CHINESE 0x02000000 /* Transform Chinese traditional into simplified */
369 #define LCMAP_TRADITIONAL_CHINESE 0x04000000 /* Transform Chinese simplified into traditional */
371 /* Date and time formatting flags */
372 #define DATE_SHORTDATE 0x01 /* Short date format */
373 #define DATE_LONGDATE 0x02 /* Long date format */
374 #define DATE_USE_ALT_CALENDAR 0x04 /* Use an Alternate calendar */
375 #define DATE_YEARMONTH 0x08 /* Year/month format */
376 #define DATE_LTRREADING 0x10 /* Add LTR reading marks */
377 #define DATE_RTLREADING 0x20 /* Add RTL reading marks */
379 #define TIME_FORCE24HOURFORMAT 0x08 /* Always use 24 hour clock */
380 #define TIME_NOTIMEMARKER 0x04 /* show no AM/PM */
381 #define TIME_NOSECONDS 0x02 /* show no seconds */
382 #define TIME_NOMINUTESORSECONDS 0x01 /* show no minutes either */
384 /* Unicode char type flags */
385 #define CT_CTYPE1 0x0001 /* usual ctype */
386 #define CT_CTYPE2 0x0002 /* bidirectional layout info */
387 #define CT_CTYPE3 0x0004 /* textprocessing info */
389 /* Type 1 flags */
390 #define C1_UPPER 0x0001
391 #define C1_LOWER 0x0002
392 #define C1_DIGIT 0x0004
393 #define C1_SPACE 0x0008
394 #define C1_PUNCT 0x0010
395 #define C1_CNTRL 0x0020
396 #define C1_BLANK 0x0040
397 #define C1_XDIGIT 0x0080
398 #define C1_ALPHA 0x0100
399 #define C1_DEFINED 0x0200
401 /* Type 2 flags */
402 #define C2_LEFTTORIGHT 0x0001
403 #define C2_RIGHTTOLEFT 0x0002
404 #define C2_EUROPENUMBER 0x0003
405 #define C2_EUROPESEPARATOR 0x0004
406 #define C2_EUROPETERMINATOR 0x0005
407 #define C2_ARABICNUMBER 0x0006
408 #define C2_COMMONSEPARATOR 0x0007
409 #define C2_BLOCKSEPARATOR 0x0008
410 #define C2_SEGMENTSEPARATOR 0x0009
411 #define C2_WHITESPACE 0x000A
412 #define C2_OTHERNEUTRAL 0x000B
413 #define C2_NOTAPPLICABLE 0x0000
415 /* Type 3 flags */
416 #define C3_NONSPACING 0x0001
417 #define C3_DIACRITIC 0x0002
418 #define C3_VOWELMARK 0x0004
419 #define C3_SYMBOL 0x0008
420 #define C3_KATAKANA 0x0010
421 #define C3_HIRAGANA 0x0020
422 #define C3_HALFWIDTH 0x0040
423 #define C3_FULLWIDTH 0x0080
424 #define C3_IDEOGRAPH 0x0100
425 #define C3_KASHIDA 0x0200
426 #define C3_LEXICAL 0x0400
427 #define C3_ALPHA 0x8000
428 #define C3_NOTAPPLICABLE 0x0000
430 /* Code page information.
432 #define MAX_LEADBYTES 12
433 #define MAX_DEFAULTCHAR 2
435 /* Defines for calendar handling */
436 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
437 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
438 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
440 #define CAL_ICALINTVALUE 0x01
441 #define CAL_SCALNAME 0x02
442 #define CAL_IYEAROFFSETRANGE 0x03
443 #define CAL_SERASTRING 0x04
444 #define CAL_SSHORTDATE 0x05
445 #define CAL_SLONGDATE 0x06
446 #define CAL_SDAYNAME1 0x07
447 #define CAL_SDAYNAME2 0x08
448 #define CAL_SDAYNAME3 0x09
449 #define CAL_SDAYNAME4 0x0a
450 #define CAL_SDAYNAME5 0x0b
451 #define CAL_SDAYNAME6 0x0c
452 #define CAL_SDAYNAME7 0x0d
453 #define CAL_SABBREVDAYNAME1 0x0e
454 #define CAL_SABBREVDAYNAME2 0x0f
455 #define CAL_SABBREVDAYNAME3 0x10
456 #define CAL_SABBREVDAYNAME4 0x11
457 #define CAL_SABBREVDAYNAME5 0x12
458 #define CAL_SABBREVDAYNAME6 0x13
459 #define CAL_SABBREVDAYNAME7 0x14
460 #define CAL_SMONTHNAME1 0x15
461 #define CAL_SMONTHNAME2 0x16
462 #define CAL_SMONTHNAME3 0x17
463 #define CAL_SMONTHNAME4 0x18
464 #define CAL_SMONTHNAME5 0x19
465 #define CAL_SMONTHNAME6 0x1a
466 #define CAL_SMONTHNAME7 0x1b
467 #define CAL_SMONTHNAME8 0x1c
468 #define CAL_SMONTHNAME9 0x1d
469 #define CAL_SMONTHNAME10 0x1e
470 #define CAL_SMONTHNAME11 0x1f
471 #define CAL_SMONTHNAME12 0x20
472 #define CAL_SMONTHNAME13 0x21
473 #define CAL_SABBREVMONTHNAME1 0x22
474 #define CAL_SABBREVMONTHNAME2 0x23
475 #define CAL_SABBREVMONTHNAME3 0x24
476 #define CAL_SABBREVMONTHNAME4 0x25
477 #define CAL_SABBREVMONTHNAME5 0x26
478 #define CAL_SABBREVMONTHNAME6 0x27
479 #define CAL_SABBREVMONTHNAME7 0x28
480 #define CAL_SABBREVMONTHNAME8 0x29
481 #define CAL_SABBREVMONTHNAME9 0x2a
482 #define CAL_SABBREVMONTHNAME10 0x2b
483 #define CAL_SABBREVMONTHNAME11 0x2c
484 #define CAL_SABBREVMONTHNAME12 0x2d
485 #define CAL_SABBREVMONTHNAME13 0x2e
486 #define CAL_SYEARMONTH 0x2f
487 #define CAL_ITWODIGITYEARMAX 0x30
489 /* Calendar types */
490 #define CAL_GREGORIAN 1
491 #define CAL_GREGORIAN_US 2
492 #define CAL_JAPAN 3
493 #define CAL_TAIWAN 4
494 #define CAL_KOREA 5
495 #define CAL_HIJRI 6
496 #define CAL_THAI 7
497 #define CAL_HEBREW 8
498 #define CAL_GREGORIAN_ME_FRENCH 9
499 #define CAL_GREGORIAN_ARABIC 10
500 #define CAL_GREGORIAN_XLIT_ENGLISH 11
501 #define CAL_GREGORIAN_XLIT_FRENCH 12
503 /* EnumCalendarInfo Flags */
504 #define ENUM_ALL_CALENDARS 0xffffffff /* Enumerate all calendars within a locale */
506 /* CompareString results */
507 #define CSTR_LESS_THAN 1
508 #define CSTR_EQUAL 2
509 #define CSTR_GREATER_THAN 3
512 * Language Group IDs.
513 * Resources in kernel32 are LGRPID_xxx+0x2000 because low values were used by LOCALE_xxx
514 * This is done because resources in win2k kernel32 / winxp kernel32 are not even
515 * stored the same way.
517 #define LGRPID_WESTERN_EUROPE 0x01 /* Includes US and Africa */
518 #define LGRPID_CENTRAL_EUROPE 0x02
519 #define LGRPID_BALTIC 0x03
520 #define LGRPID_GREEK 0x04
521 #define LGRPID_CYRILLIC 0x05
522 #define LGRPID_TURKISH 0x06
523 #define LGRPID_JAPANESE 0x07
524 #define LGRPID_KOREAN 0x08
525 #define LGRPID_TRADITIONAL_CHINESE 0x09
526 #define LGRPID_SIMPLIFIED_CHINESE 0x0A
527 #define LGRPID_THAI 0x0B
528 #define LGRPID_HEBREW 0x0C
529 #define LGRPID_ARABIC 0x0D
530 #define LGRPID_VIETNAMESE 0x0E
531 #define LGRPID_INDIC 0x0F
532 #define LGRPID_GEORGIAN 0x10
533 #define LGRPID_ARMENIAN 0x11
535 /* Types
538 typedef DWORD CALID;
539 typedef DWORD CALTYPE;
540 typedef LONG GEOID;
541 typedef DWORD GEOCLASS;
542 typedef DWORD GEOTYPE;
543 typedef DWORD LCTYPE;
544 typedef DWORD LGRPID;
546 typedef struct
548 UINT MaxCharSize;
549 BYTE DefaultChar[MAX_DEFAULTCHAR];
550 BYTE LeadByte[MAX_LEADBYTES];
551 } CPINFO, *LPCPINFO;
553 typedef struct
555 UINT MaxCharSize;
556 BYTE DefaultChar[MAX_DEFAULTCHAR];
557 BYTE LeadByte[MAX_LEADBYTES];
558 WCHAR UnicodeDefaultChar;
559 UINT CodePage;
560 CHAR CodePageName[MAX_PATH];
561 } CPINFOEXA, *LPCPINFOEXA;
563 typedef struct
565 UINT MaxCharSize;
566 BYTE DefaultChar[MAX_DEFAULTCHAR];
567 BYTE LeadByte[MAX_LEADBYTES];
568 WCHAR UnicodeDefaultChar;
569 UINT CodePage;
570 WCHAR CodePageName[MAX_PATH];
571 } CPINFOEXW, *LPCPINFOEXW;
573 DECL_WINELIB_TYPE_AW(CPINFOEX)
574 DECL_WINELIB_TYPE_AW(LPCPINFOEX)
576 typedef struct _numberfmtA {
577 UINT NumDigits;
578 UINT LeadingZero;
579 UINT Grouping;
580 LPSTR lpDecimalSep;
581 LPSTR lpThousandSep;
582 UINT NegativeOrder;
583 } NUMBERFMTA, *LPNUMBERFMTA;
585 typedef struct _numberfmtW {
586 UINT NumDigits;
587 UINT LeadingZero;
588 UINT Grouping;
589 LPWSTR lpDecimalSep;
590 LPWSTR lpThousandSep;
591 UINT NegativeOrder;
592 } NUMBERFMTW, *LPNUMBERFMTW;
594 DECL_WINELIB_TYPE_AW(NUMBERFMT)
595 DECL_WINELIB_TYPE_AW(LPNUMBERFMT)
597 typedef struct _currencyfmtA
599 UINT NumDigits;
600 UINT LeadingZero;
601 UINT Grouping;
602 LPSTR lpDecimalSep;
603 LPSTR lpThousandSep;
604 UINT NegativeOrder;
605 UINT PositiveOrder;
606 LPSTR lpCurrencySymbol;
607 } CURRENCYFMTA, *LPCURRENCYFMTA;
609 typedef struct _currencyfmtW
611 UINT NumDigits;
612 UINT LeadingZero;
613 UINT Grouping;
614 LPWSTR lpDecimalSep;
615 LPWSTR lpThousandSep;
616 UINT NegativeOrder;
617 UINT PositiveOrder;
618 LPWSTR lpCurrencySymbol;
619 } CURRENCYFMTW, *LPCURRENCYFMTW;
621 DECL_WINELIB_TYPE_AW(CURRENCYFMT)
622 DECL_WINELIB_TYPE_AW(LPCURRENCYFMT)
625 /* Define a bunch of callback types */
627 #if defined(STRICT)
628 typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR);
629 typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR);
630 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR,CALID);
631 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR,CALID);
632 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
633 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
634 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
635 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
636 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR,CALID);
637 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID);
638 typedef BOOL (CALLBACK *GEO_ENUMPROC)(GEOID);
639 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID,LCID,LPSTR,LONG_PTR);
640 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID,LCID,LPWSTR,LONG_PTR);
641 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCA)(LGRPID,LPSTR,LPSTR,DWORD,LONG_PTR);
642 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID,LPWSTR,LPWSTR,DWORD,LONG_PTR);
643 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
644 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
645 typedef BOOL (CALLBACK *LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM);
646 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
647 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
648 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCA)(LPSTR,LONG_PTR);
649 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCW)(LPWSTR,LONG_PTR);
650 #else
651 typedef FARPROC CALINFO_ENUMPROCA;
652 typedef FARPROC CALINFO_ENUMPROCW;
653 typedef FARPROC CALINFO_ENUMPROCEXA;
654 typedef FARPROC CALINFO_ENUMPROCEXW;
655 typedef FARPROC CODEPAGE_ENUMPROCA;
656 typedef FARPROC CODEPAGE_ENUMPROCW;
657 typedef FARPROC DATEFMT_ENUMPROCA;
658 typedef FARPROC DATEFMT_ENUMPROCW;
659 typedef FARPROC DATEFMT_ENUMPROCEXA;
660 typedef FARPROC DATEFMT_ENUMPROCEXW;
661 typedef FARPROC GEO_ENUMPROC;
662 typedef FARPROC LANGGROUPLOCALE_ENUMPROCA;
663 typedef FARPROC LANGGROUPLOCALE_ENUMPROCW;
664 typedef FARPROC LANGUAGEGROUP_ENUMPROCA;
665 typedef FARPROC LANGUAGEGROUP_ENUMPROCW;
666 typedef FARPROC LOCALE_ENUMPROCA;
667 typedef FARPROC LOCALE_ENUMPROCW;
668 typedef FARPROC TIMEFMT_ENUMPROCA;
669 typedef FARPROC TIMEFMT_ENUMPROCW;
670 typedef FARPROC UILANGUAGE_ENUMPROCA;
671 typedef FARPROC UILANGUAGE_ENUMPROCW;
672 #endif /* STRICT */
674 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
675 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROCEX)
676 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
677 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC)
678 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROCEX)
679 DECL_WINELIB_TYPE_AW(LANGGROUPLOCALE_ENUMPROC)
680 DECL_WINELIB_TYPE_AW(LANGUAGEGROUP_ENUMPROC)
681 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
682 DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC)
683 DECL_WINELIB_TYPE_AW(UILANGUAGE_ENUMPROC)
685 /* Geographic Information types */
686 enum SYSGEOTYPE
688 GEO_NATION = 1,
689 GEO_LATITUDE,
690 GEO_LONGITUDE,
691 GEO_ISO2,
692 GEO_ISO3,
693 GEO_RFC1766,
694 GEO_LCID,
695 GEO_FRIENDLYNAME,
696 GEO_OFFICIALNAME,
697 GEO_TIMEZONES,
698 GEO_OFFICIALLANGUAGES
701 enum SYSGEOCLASS
703 GEOCLASS_REGION = 14,
704 GEOCLASS_NATION = 16
707 #define GEOID_NOT_AVAILABLE (-1)
710 /* NLS Functions.
713 WINBASEAPI INT WINAPI CompareStringA(LCID,DWORD,LPCSTR,INT,LPCSTR,INT);
714 WINBASEAPI INT WINAPI CompareStringW(LCID,DWORD,LPCWSTR,INT,LPCWSTR,INT);
715 #define CompareString WINELIB_NAME_AW(CompareString)
716 WINBASEAPI LCID WINAPI ConvertDefaultLocale(LCID);
717 WINBASEAPI BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE);
718 WINBASEAPI BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE);
719 #define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo)
720 WINBASEAPI BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE);
721 WINBASEAPI BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE);
722 #define EnumCalendarInfoEx WINELIB_NAME_AW(EnumCalendarInfoEx)
723 WINBASEAPI BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD);
724 WINBASEAPI BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD);
725 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
726 WINBASEAPI BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD);
727 WINBASEAPI BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD);
728 #define EnumDateFormatsEx WINELIB_NAME_AW(EnumDateFormatsEx)
729 WINBASEAPI BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
730 WINBASEAPI BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
731 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
732 WINBASEAPI BOOL WINAPI EnumSystemGeoID(GEOCLASS,GEOID,GEO_ENUMPROC);
733 WINBASEAPI BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
734 WINBASEAPI BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
735 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
736 WINBASEAPI BOOL WINAPI EnumSystemLocalesEx(LOCALE_ENUMPROCEX,DWORD,LPARAM,LPVOID);
737 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR);
738 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR);
739 #define EnumSystemLanguageGroups WINELIB_NAME_AW(EnumSystemLanguageGroups)
740 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR);
741 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR);
742 #define EnumLanguageGroupLocales WINELIB_NAME_AW(EnumLanguageGroupLocales)
743 WINBASEAPI BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD);
744 WINBASEAPI BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD);
745 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
746 WINBASEAPI BOOL WINAPI EnumUILanguagesA(UILANGUAGE_ENUMPROCA,DWORD,LONG_PTR);
747 WINBASEAPI BOOL WINAPI EnumUILanguagesW(UILANGUAGE_ENUMPROCW,DWORD,LONG_PTR);
748 #define EnumUILanguages WINELIB_NAME_AW(EnumUILanguages)
749 WINBASEAPI INT WINAPI FoldStringA(DWORD,LPCSTR,INT,LPSTR,INT);
750 WINBASEAPI INT WINAPI FoldStringW(DWORD,LPCWSTR,INT,LPWSTR,INT);
751 #define FoldString WINELIB_NAME_AW(FoldString)
752 WINBASEAPI UINT WINAPI GetACP(void);
753 WINBASEAPI BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
754 WINBASEAPI BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA);
755 WINBASEAPI BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW);
756 #define GetCPInfoEx WINELIB_NAME_AW(GetCPInfoEx)
757 WINBASEAPI INT WINAPI GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD);
758 WINBASEAPI INT WINAPI GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD);
759 #define GetCalendarInfo WINELIB_NAME_AW(GetCalendarInfo)
760 WINBASEAPI INT WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,INT);
761 WINBASEAPI INT WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,INT);
762 #define GetCurrencyFormat WINELIB_NAME_AW(GetCurrencyFormat)
763 WINBASEAPI INT WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
764 WINBASEAPI INT WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
765 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
766 WINBASEAPI INT WINAPI GetGeoInfoA(GEOID,GEOTYPE,LPSTR,INT,LANGID);
767 WINBASEAPI INT WINAPI GetGeoInfoW(GEOID,GEOTYPE,LPWSTR,INT,LANGID);
768 #define GetGeoInfo WINELIB_NAME_AW(GetGeoInfo)
769 WINBASEAPI INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
770 WINBASEAPI INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
771 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
772 WINBASEAPI INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,INT);
773 WINBASEAPI INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,INT);
774 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat)
775 WINBASEAPI UINT WINAPI GetOEMCP(void);
776 WINBASEAPI BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
777 WINBASEAPI BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
778 WINBASEAPI BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
779 WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
780 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
781 WINBASEAPI LANGID WINAPI GetSystemDefaultLangID(void);
782 WINBASEAPI LCID WINAPI GetSystemDefaultLCID(void);
783 WINBASEAPI LANGID WINAPI GetSystemDefaultUILanguage(void);
784 WINBASEAPI LCID WINAPI GetThreadLocale(void);
785 WINBASEAPI INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
786 WINBASEAPI INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
787 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
788 WINBASEAPI LANGID WINAPI GetUserDefaultLangID(void);
789 WINBASEAPI LCID WINAPI GetUserDefaultLCID(void);
790 WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int);
791 WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
792 WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS);
793 WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);
794 WINBASEAPI BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
795 WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
796 WINBASEAPI BOOL WINAPI IsValidLocale(LCID,DWORD);
797 WINBASEAPI BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
798 WINBASEAPI INT WINAPI LCIDToLocaleName(LCID,LPWSTR,INT,DWORD);
799 WINBASEAPI INT WINAPI LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT);
800 WINBASEAPI INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT);
801 #define LCMapString WINELIB_NAME_AW(LCMapString)
802 WINBASEAPI LCID WINAPI LocaleNameToLCID(LPCWSTR,DWORD);
803 WINBASEAPI INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
804 WINBASEAPI INT WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR);
805 WINBASEAPI INT WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
806 #define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo)
807 WINBASEAPI BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR);
808 WINBASEAPI BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR);
809 #define SetLocaleInfo WINELIB_NAME_AW(SetLocaleInfo)
810 WINBASEAPI BOOL WINAPI SetThreadLocale(LCID);
811 WINBASEAPI BOOL WINAPI SetUserGeoID(GEOID);
812 WINBASEAPI INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL);
814 #ifdef __cplusplus
816 #endif
818 #endif /* !NONLS */
819 #endif /* __WINE_WINNLS_H */