winhttp/tests: Fix a test failure.
[wine.git] / include / winnls.h
blobc7c2cfb2404fa9e06e5ff38f6c7bc1ad5659e198
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 #ifndef _NORMALIZE_
28 # define WINNORMALIZEAPI DECLSPEC_HIDDEN
29 #else
30 # define WINNORMALIZEAPI
31 #endif
33 /* Country codes */
34 #define CTRY_DEFAULT (0)
35 #define CTRY_ALBANIA (355)
36 #define CTRY_ALGERIA (213)
37 #define CTRY_ARGENTINA (54)
38 #define CTRY_ARMENIA (374)
39 #define CTRY_AUSTRALIA (61)
40 #define CTRY_AUSTRIA (43)
41 #define CTRY_AZERBAIJAN (994)
42 #define CTRY_BAHRAIN (973)
43 #define CTRY_BELARUS (375)
44 #define CTRY_BELGIUM (32)
45 #define CTRY_BELIZE (501)
46 #define CTRY_BOLIVIA (591)
47 #define CTRY_BRAZIL (55)
48 #define CTRY_BRUNEI_DARUSSALAM (673)
49 #define CTRY_BULGARIA (359)
50 #define CTRY_CANADA (2)
51 #define CTRY_CARIBBEAN (1)
52 #define CTRY_CHILE (56)
53 #define CTRY_COLOMBIA (57)
54 #define CTRY_COSTA_RICA (506)
55 #define CTRY_CROATIA (385)
56 #define CTRY_CZECH (420)
57 #define CTRY_DENMARK (45)
58 #define CTRY_DOMINICAN_REPUBLIC (1)
59 #define CTRY_ECUADOR (593)
60 #define CTRY_EGYPT (20)
61 #define CTRY_EL_SALVADOR (503)
62 #define CTRY_ESTONIA (372)
63 #define CTRY_FAEROE_ISLANDS (298)
64 #define CTRY_FINLAND (358)
65 #define CTRY_FRANCE (33)
66 #define CTRY_GEORGIA (995)
67 #define CTRY_GERMANY (49)
68 #define CTRY_GREECE (30)
69 #define CTRY_GUATEMALA (502)
70 #define CTRY_HONDURAS (504)
71 #define CTRY_HONG_KONG (852)
72 #define CTRY_HUNGARY (36)
73 #define CTRY_ICELAND (354)
74 #define CTRY_INDIA (91)
75 #define CTRY_INDONESIA (62)
76 #define CTRY_IRAN (981)
77 #define CTRY_IRAQ (964)
78 #define CTRY_IRELAND (353)
79 #define CTRY_ISRAEL (972)
80 #define CTRY_ITALY (39)
81 #define CTRY_JAMAICA (1)
82 #define CTRY_JAPAN (81)
83 #define CTRY_JORDAN (962)
84 #define CTRY_KAZAKSTAN (7)
85 #define CTRY_KENYA (254)
86 #define CTRY_KUWAIT (965)
87 #define CTRY_KYRGYZSTAN (996)
88 #define CTRY_LATVIA (371)
89 #define CTRY_LEBANON (961)
90 #define CTRY_LIBYA (218)
91 #define CTRY_LIECHTENSTEIN (41)
92 #define CTRY_LITHUANIA (370)
93 #define CTRY_LUXEMBOURG (352)
94 #define CTRY_MACAU (853)
95 #define CTRY_MACEDONIA (389)
96 #define CTRY_MALAYSIA (60)
97 #define CTRY_MALDIVES (960)
98 #define CTRY_MEXICO (52)
99 #define CTRY_MONACO (33)
100 #define CTRY_MONGOLIA (976)
101 #define CTRY_MOROCCO (212)
102 #define CTRY_NETHERLANDS (31)
103 #define CTRY_NEW_ZEALAND (64)
104 #define CTRY_NICARAGUA (505)
105 #define CTRY_NORWAY (47)
106 #define CTRY_OMAN (968)
107 #define CTRY_PAKISTAN (92)
108 #define CTRY_PANAMA (507)
109 #define CTRY_PARAGUAY (595)
110 #define CTRY_PERU (51)
111 #define CTRY_PHILIPPINES (63)
112 #define CTRY_POLAND (48)
113 #define CTRY_PORTUGAL (351)
114 #define CTRY_PRCHINA (86)
115 #define CTRY_PUERTO_RICO (1)
116 #define CTRY_QATAR (974)
117 #define CTRY_ROMANIA (40)
118 #define CTRY_RUSSIA (7)
119 #define CTRY_SAUDI_ARABIA (966)
120 #define CTRY_SERBIA (381)
121 #define CTRY_SINGAPORE (65)
122 #define CTRY_SLOVAK (421)
123 #define CTRY_SLOVENIA (386)
124 #define CTRY_SOUTH_AFRICA (27)
125 #define CTRY_SOUTH_KOREA (82)
126 #define CTRY_SPAIN (34)
127 #define CTRY_SWEDEN (46)
128 #define CTRY_SWITZERLAND (41)
129 #define CTRY_SYRIA (963)
130 #define CTRY_TAIWAN (886)
131 #define CTRY_TATARSTAN (7)
132 #define CTRY_THAILAND (66)
133 #define CTRY_TRINIDAD_Y_TOBAGO (1)
134 #define CTRY_TUNISIA (216)
135 #define CTRY_TURKEY (90)
136 #define CTRY_UAE (971)
137 #define CTRY_UKRAINE (380)
138 #define CTRY_UNITED_KINGDOM (44)
139 #define CTRY_UNITED_STATES (1)
140 #define CTRY_URUGUAY (598)
141 #define CTRY_UZBEKISTAN (7)
142 #define CTRY_VENEZUELA (58)
143 #define CTRY_VIET_NAM (84)
144 #define CTRY_YEMEN (967)
145 #define CTRY_ZIMBABWE (263)
147 #define MB_PRECOMPOSED 0x01
148 #define MB_COMPOSITE 0x02
149 #define MB_USEGLYPHCHARS 0x04
150 #define MB_ERR_INVALID_CHARS 0x08
152 #define LGRPID_INSTALLED 0x1
153 #define LGRPID_SUPPORTED 0x2
155 #define LCID_INSTALLED 0x1
156 #define LCID_SUPPORTED 0x2
157 #define LCID_ALTERNATE_SORTS 0x4
159 #define LOCALE_ALL 0x00
160 #define LOCALE_WINDOWS 0x01
161 #define LOCALE_SUPPLEMENTAL 0x02
162 #define LOCALE_ALTERNATE_SORTS 0x04
163 #define LOCALE_REPLACEMENT 0x08
164 #define LOCALE_NEUTRALDATA 0x10
165 #define LOCALE_SPECIFICDATA 0x20
167 /* Locale flags */
168 #define LOCALE_NOUSEROVERRIDE 0x80000000
169 #define LOCALE_USE_CP_ACP 0x40000000
170 #define LOCALE_RETURN_NUMBER 0x20000000
171 #define LOCALE_RETURN_GENITIVE_NAMES 0x10000000
172 #define LOCALE_ALLOW_NEUTRAL_NAMES 0x08000000
174 /* Locale information types */
175 #define LOCALE_ILANGUAGE 0x0001
176 #define LOCALE_SLANGUAGE 0x0002
177 #define LOCALE_SLOCALIZEDDISPLAYNAME 0x0002
178 #define LOCALE_SENGLANGUAGE 0x1001
179 #define LOCALE_SENGLISHLANGUAGENAME 0x1001
180 #define LOCALE_SABBREVLANGNAME 0x0003
181 #define LOCALE_SNATIVELANGNAME 0x0004
182 #define LOCALE_SNATIVELANGUAGENAME 0x0004
183 #define LOCALE_ICOUNTRY 0x0005
184 #define LOCALE_SCOUNTRY 0x0006
185 #define LOCALE_SLOCALIZEDCOUNTRYNAME 0x0006
186 #define LOCALE_SENGCOUNTRY 0x1002
187 #define LOCALE_SENGLISHCOUNTRYNAME 0x1002
188 #define LOCALE_SABBREVCTRYNAME 0x0007
189 #define LOCALE_SNATIVECTRYNAME 0x0008
190 #define LOCALE_SNATIVECOUNTRYNAME 0x0008
191 #define LOCALE_IDEFAULTLANGUAGE 0x0009
192 #define LOCALE_IDEFAULTCOUNTRY 0x000A
193 #define LOCALE_IDEFAULTCODEPAGE 0x000B
194 #define LOCALE_IDEFAULTANSICODEPAGE 0x1004
195 #define LOCALE_IDEFAULTMACCODEPAGE 0x1011
196 #define LOCALE_SLIST 0x000C
197 #define LOCALE_IMEASURE 0x000D
198 #define LOCALE_SDECIMAL 0x000E
199 #define LOCALE_STHOUSAND 0x000F
200 #define LOCALE_SGROUPING 0x0010
201 #define LOCALE_IDIGITS 0x0011
202 #define LOCALE_ILZERO 0x0012
203 #define LOCALE_INEGNUMBER 0x1010
204 #define LOCALE_SNATIVEDIGITS 0x0013
205 #define LOCALE_SCURRENCY 0x0014
206 #define LOCALE_SINTLSYMBOL 0x0015
207 #define LOCALE_SMONDECIMALSEP 0x0016
208 #define LOCALE_SMONTHOUSANDSEP 0x0017
209 #define LOCALE_SMONGROUPING 0x0018
210 #define LOCALE_ICURRDIGITS 0x0019
211 #define LOCALE_IINTLCURRDIGITS 0x001A
212 #define LOCALE_ICURRENCY 0x001B
213 #define LOCALE_INEGCURR 0x001C
214 #define LOCALE_SDATE 0x001D
215 #define LOCALE_STIME 0x001E
216 #define LOCALE_SSHORTDATE 0x001F
217 #define LOCALE_SLONGDATE 0x0020
218 #define LOCALE_STIMEFORMAT 0x1003
219 #define LOCALE_IDATE 0x0021
220 #define LOCALE_ILDATE 0x0022
221 #define LOCALE_ITIME 0x0023
222 #define LOCALE_ITIMEMARKPOSN 0x1005
223 #define LOCALE_ICENTURY 0x0024
224 #define LOCALE_ITLZERO 0x0025
225 #define LOCALE_IDAYLZERO 0x0026
226 #define LOCALE_IMONLZERO 0x0027
227 #define LOCALE_S1159 0x0028
228 #define LOCALE_S2359 0x0029
229 #define LOCALE_ICALENDARTYPE 0x1009
230 #define LOCALE_IOPTIONALCALENDAR 0x100B
231 #define LOCALE_IFIRSTDAYOFWEEK 0x100C
232 #define LOCALE_IFIRSTWEEKOFYEAR 0x100D
233 #define LOCALE_SDAYNAME1 0x002A
234 #define LOCALE_SDAYNAME2 0x002B
235 #define LOCALE_SDAYNAME3 0x002C
236 #define LOCALE_SDAYNAME4 0x002D
237 #define LOCALE_SDAYNAME5 0x002E
238 #define LOCALE_SDAYNAME6 0x002F
239 #define LOCALE_SDAYNAME7 0x0030
240 #define LOCALE_SABBREVDAYNAME1 0x0031
241 #define LOCALE_SABBREVDAYNAME2 0x0032
242 #define LOCALE_SABBREVDAYNAME3 0x0033
243 #define LOCALE_SABBREVDAYNAME4 0x0034
244 #define LOCALE_SABBREVDAYNAME5 0x0035
245 #define LOCALE_SABBREVDAYNAME6 0x0036
246 #define LOCALE_SABBREVDAYNAME7 0x0037
247 #define LOCALE_SMONTHNAME1 0x0038
248 #define LOCALE_SMONTHNAME2 0x0039
249 #define LOCALE_SMONTHNAME3 0x003A
250 #define LOCALE_SMONTHNAME4 0x003B
251 #define LOCALE_SMONTHNAME5 0x003C
252 #define LOCALE_SMONTHNAME6 0x003D
253 #define LOCALE_SMONTHNAME7 0x003E
254 #define LOCALE_SMONTHNAME8 0x003F
255 #define LOCALE_SMONTHNAME9 0x0040
256 #define LOCALE_SMONTHNAME10 0x0041
257 #define LOCALE_SMONTHNAME11 0x0042
258 #define LOCALE_SMONTHNAME12 0x0043
259 #define LOCALE_SMONTHNAME13 0x100E
260 #define LOCALE_SABBREVMONTHNAME1 0x0044
261 #define LOCALE_SABBREVMONTHNAME2 0x0045
262 #define LOCALE_SABBREVMONTHNAME3 0x0046
263 #define LOCALE_SABBREVMONTHNAME4 0x0047
264 #define LOCALE_SABBREVMONTHNAME5 0x0048
265 #define LOCALE_SABBREVMONTHNAME6 0x0049
266 #define LOCALE_SABBREVMONTHNAME7 0x004A
267 #define LOCALE_SABBREVMONTHNAME8 0x004B
268 #define LOCALE_SABBREVMONTHNAME9 0x004C
269 #define LOCALE_SABBREVMONTHNAME10 0x004D
270 #define LOCALE_SABBREVMONTHNAME11 0x004E
271 #define LOCALE_SABBREVMONTHNAME12 0x004F
272 #define LOCALE_SABBREVMONTHNAME13 0x100F
273 #define LOCALE_SPOSITIVESIGN 0x0050
274 #define LOCALE_SNEGATIVESIGN 0x0051
275 #define LOCALE_IPOSSIGNPOSN 0x0052
276 #define LOCALE_INEGSIGNPOSN 0x0053
277 #define LOCALE_IPOSSYMPRECEDES 0x0054
278 #define LOCALE_IPOSSEPBYSPACE 0x0055
279 #define LOCALE_INEGSYMPRECEDES 0x0056
280 #define LOCALE_INEGSEPBYSPACE 0x0057
281 #define LOCALE_FONTSIGNATURE 0x0058
282 #define LOCALE_SISO639LANGNAME 0x0059
283 #define LOCALE_SISO3166CTRYNAME 0x005A
284 #define LOCALE_IGEOID 0x005B
285 #define LOCALE_SNAME 0x005C
286 #define LOCALE_SDURATION 0x005D
287 #define LOCALE_SKEYBOARDSTOINSTALL 0x005E
288 #define LOCALE_SSHORTESTDAYNAME1 0x0060
289 #define LOCALE_SSHORTESTDAYNAME2 0x0061
290 #define LOCALE_SSHORTESTDAYNAME3 0x0062
291 #define LOCALE_SSHORTESTDAYNAME4 0x0063
292 #define LOCALE_SSHORTESTDAYNAME5 0x0064
293 #define LOCALE_SSHORTESTDAYNAME6 0x0065
294 #define LOCALE_SSHORTESTDAYNAME7 0x0066
295 #define LOCALE_SISO639LANGNAME2 0x0067
296 #define LOCALE_SISO3166CTRYNAME2 0x0068
297 #define LOCALE_SNAN 0x0069
298 #define LOCALE_SPOSINFINITY 0x006A
299 #define LOCALE_SNEGINFINITY 0x006B
300 #define LOCALE_SSCRIPTS 0x006C
301 #define LOCALE_SPARENT 0x006D
302 #define LOCALE_SCONSOLEFALLBACKNAME 0x006E
303 #define LOCALE_SLANGDISPLAYNAME 0x006F
304 #define LOCALE_SLOCALIZEDLANGUAGENAME 0x006F
305 #define LOCALE_IREADINGLAYOUT 0x0070
306 #define LOCALE_INEUTRAL 0x0071
307 #define LOCALE_SENGLISHDISPLAYNAME 0x0072
308 #define LOCALE_SNATIVEDISPLAYNAME 0x0073
309 #define LOCALE_INEGATIVEPERCENT 0x0074
310 #define LOCALE_IPOSITIVEPERCENT 0x0075
311 #define LOCALE_SPERCENT 0x0076
312 #define LOCALE_SPERMILLE 0x0077
313 #define LOCALE_SMONTHDAY 0x0078
314 #define LOCALE_SSHORTTIME 0x0079
315 #define LOCALE_SOPENTYPELANGUAGETAG 0X007A
316 #define LOCALE_SSORTLOCALE 0x007B
318 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x1012
319 #define LOCALE_IPAPERSIZE 0x100A
320 #define LOCALE_SENGCURRNAME 0x1007
321 #define LOCALE_SNATIVECURRNAME 0x1008
322 #define LOCALE_SYEARMONTH 0x1006
323 #define LOCALE_SSORTNAME 0x1013
324 #define LOCALE_IDIGITSUBSTITUTION 0x1014
326 /* Locale name special values */
327 #if defined(_MSC_VER) || defined(__MINGW32__)
328 # define LOCALE_NAME_INVARIANT L""
329 #else
330 static const WCHAR LOCALE_NAME_INVARIANT[] = { 0 };
331 #endif
333 #if defined(_MSC_VER) || defined(__MINGW32__)
334 # define LOCALE_NAME_SYSTEM_DEFAULT L"!sys-default-locale"
335 #else
336 static const WCHAR LOCALE_NAME_SYSTEM_DEFAULT[] = {'!','s','y','s','-','d','e','f','a','u','l','t','-','l','o','c','a','l','e',0};
337 #endif
339 #define LOCALE_NAME_USER_DEFAULT NULL
341 #define NORM_IGNORECASE 0x00000001
342 #define NORM_IGNORENONSPACE 0x00000002
343 #define NORM_IGNORESYMBOLS 0x00000004
344 #define SORT_DIGITSASNUMBERS 0x00000008
345 #define LINGUISTIC_IGNORECASE 0x00000010
346 #define LINGUISTIC_IGNOREDIACRITIC 0x00000020
347 #define SORT_STRINGSORT 0x00001000 /* Take punctuation into account */
348 #define NORM_IGNOREKANATYPE 0x00010000
349 #define NORM_IGNOREWIDTH 0x00020000
350 #define NORM_LINGUISTIC_CASING 0x08000000
351 #define FIND_STARTSWITH 0x00100000
352 #define FIND_ENDSWITH 0x00200000
353 #define FIND_FROMSTART 0x00400000
354 #define FIND_FROMEND 0x00800000
356 #define CP_ACP 0
357 #define CP_OEMCP 1
358 #define CP_MACCP 2
359 #define CP_THREAD_ACP 3
360 #define CP_SYMBOL 42
361 #define CP_UTF7 65000
362 #define CP_UTF8 65001
364 #define CP_UNIXCP 65010 /* Wine extension */
366 #define CP_INSTALLED 0x1
367 #define CP_SUPPORTED 0x2
369 #define HIGH_SURROGATE_START 0xd800
370 #define HIGH_SURROGATE_END 0xdbff
371 #define LOW_SURROGATE_START 0xdc00
372 #define LOW_SURROGATE_END 0xdfff
374 #define IS_HIGH_SURROGATE(ch) ((ch) >= HIGH_SURROGATE_START && (ch) <= HIGH_SURROGATE_END)
375 #define IS_LOW_SURROGATE(ch) ((ch) >= LOW_SURROGATE_START && (ch) <= LOW_SURROGATE_END)
376 #define IS_SURROGATE_PAIR(high,low) (IS_HIGH_SURROGATE(high) && IS_LOW_SURROGATE(low))
378 #define WC_DISCARDNS 0x0010
379 #define WC_SEPCHARS 0x0020
380 #define WC_DEFAULTCHAR 0x0040
381 #define WC_ERR_INVALID_CHARS 0x0080
382 #define WC_COMPOSITECHECK 0x0200
383 #define WC_NO_BEST_FIT_CHARS 0x0400
385 #define MAP_FOLDCZONE 0x0010
386 #define MAP_PRECOMPOSED 0x0020
387 #define MAP_COMPOSITE 0x0040
388 #define MAP_FOLDDIGITS 0x0080
389 #define MAP_EXPAND_LIGATURES 0x2000
392 /* String mapping flags */
393 #define LCMAP_LOWERCASE 0x00000100 /* Make lower-case */
394 #define LCMAP_UPPERCASE 0x00000200 /* Make upper-case */
395 #define LCMAP_SORTKEY 0x00000400 /* Create a sort key */
396 #define LCMAP_BYTEREV 0x00000800 /* Reverse the result */
398 #define LCMAP_HIRAGANA 0x00100000 /* Transform Japanese katakana into hiragana */
399 #define LCMAP_KATAKANA 0x00200000 /* Transform Japanese hiragana into katakana */
400 #define LCMAP_HALFWIDTH 0x00400000 /* Use single byte chars in output */
401 #define LCMAP_FULLWIDTH 0x00800000 /* Use double byte chars in output */
403 #define LCMAP_LINGUISTIC_CASING 0x01000000 /* Change case by using language context */
404 #define LCMAP_SIMPLIFIED_CHINESE 0x02000000 /* Transform Chinese traditional into simplified */
405 #define LCMAP_TRADITIONAL_CHINESE 0x04000000 /* Transform Chinese simplified into traditional */
407 /* Date and time formatting flags */
408 #define DATE_SHORTDATE 0x01 /* Short date format */
409 #define DATE_LONGDATE 0x02 /* Long date format */
410 #define DATE_USE_ALT_CALENDAR 0x04 /* Use an Alternate calendar */
411 #define DATE_YEARMONTH 0x08 /* Year/month format */
412 #define DATE_LTRREADING 0x10 /* Add LTR reading marks */
413 #define DATE_RTLREADING 0x20 /* Add RTL reading marks */
414 #define DATE_AUTOLAYOUT 0x40 /* Add LTR or RTL reading marks automatically */
415 #define DATE_MONTHDAY 0x80 /* Month/day format */
417 #define TIME_FORCE24HOURFORMAT 0x08 /* Always use 24 hour clock */
418 #define TIME_NOTIMEMARKER 0x04 /* show no AM/PM */
419 #define TIME_NOSECONDS 0x02 /* show no seconds */
420 #define TIME_NOMINUTESORSECONDS 0x01 /* show no minutes either */
422 /* Unicode char type flags */
423 #define CT_CTYPE1 0x0001 /* usual ctype */
424 #define CT_CTYPE2 0x0002 /* bidirectional layout info */
425 #define CT_CTYPE3 0x0004 /* textprocessing info */
427 /* Type 1 flags */
428 #define C1_UPPER 0x0001
429 #define C1_LOWER 0x0002
430 #define C1_DIGIT 0x0004
431 #define C1_SPACE 0x0008
432 #define C1_PUNCT 0x0010
433 #define C1_CNTRL 0x0020
434 #define C1_BLANK 0x0040
435 #define C1_XDIGIT 0x0080
436 #define C1_ALPHA 0x0100
437 #define C1_DEFINED 0x0200
439 /* Type 2 flags */
440 #define C2_LEFTTORIGHT 0x0001
441 #define C2_RIGHTTOLEFT 0x0002
442 #define C2_EUROPENUMBER 0x0003
443 #define C2_EUROPESEPARATOR 0x0004
444 #define C2_EUROPETERMINATOR 0x0005
445 #define C2_ARABICNUMBER 0x0006
446 #define C2_COMMONSEPARATOR 0x0007
447 #define C2_BLOCKSEPARATOR 0x0008
448 #define C2_SEGMENTSEPARATOR 0x0009
449 #define C2_WHITESPACE 0x000A
450 #define C2_OTHERNEUTRAL 0x000B
451 #define C2_NOTAPPLICABLE 0x0000
453 /* Type 3 flags */
454 #define C3_NONSPACING 0x0001
455 #define C3_DIACRITIC 0x0002
456 #define C3_VOWELMARK 0x0004
457 #define C3_SYMBOL 0x0008
458 #define C3_KATAKANA 0x0010
459 #define C3_HIRAGANA 0x0020
460 #define C3_HALFWIDTH 0x0040
461 #define C3_FULLWIDTH 0x0080
462 #define C3_IDEOGRAPH 0x0100
463 #define C3_KASHIDA 0x0200
464 #define C3_LEXICAL 0x0400
465 #define C3_HIGHSURROGATE 0x0800
466 #define C3_LOWSURROGATE 0x1000
467 #define C3_ALPHA 0x8000
468 #define C3_NOTAPPLICABLE 0x0000
470 /* Code page information.
472 #define MAX_LEADBYTES 12
473 #define MAX_DEFAULTCHAR 2
475 /* Defines for calendar handling */
476 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
477 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
478 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
479 #define CAL_RETURN_GENITIVE_NAMES LOCALE_RETURN_GENITIVE_NAMES
481 #define CAL_ICALINTVALUE 0x01
482 #define CAL_SCALNAME 0x02
483 #define CAL_IYEAROFFSETRANGE 0x03
484 #define CAL_SERASTRING 0x04
485 #define CAL_SSHORTDATE 0x05
486 #define CAL_SLONGDATE 0x06
487 #define CAL_SDAYNAME1 0x07
488 #define CAL_SDAYNAME2 0x08
489 #define CAL_SDAYNAME3 0x09
490 #define CAL_SDAYNAME4 0x0a
491 #define CAL_SDAYNAME5 0x0b
492 #define CAL_SDAYNAME6 0x0c
493 #define CAL_SDAYNAME7 0x0d
494 #define CAL_SABBREVDAYNAME1 0x0e
495 #define CAL_SABBREVDAYNAME2 0x0f
496 #define CAL_SABBREVDAYNAME3 0x10
497 #define CAL_SABBREVDAYNAME4 0x11
498 #define CAL_SABBREVDAYNAME5 0x12
499 #define CAL_SABBREVDAYNAME6 0x13
500 #define CAL_SABBREVDAYNAME7 0x14
501 #define CAL_SMONTHNAME1 0x15
502 #define CAL_SMONTHNAME2 0x16
503 #define CAL_SMONTHNAME3 0x17
504 #define CAL_SMONTHNAME4 0x18
505 #define CAL_SMONTHNAME5 0x19
506 #define CAL_SMONTHNAME6 0x1a
507 #define CAL_SMONTHNAME7 0x1b
508 #define CAL_SMONTHNAME8 0x1c
509 #define CAL_SMONTHNAME9 0x1d
510 #define CAL_SMONTHNAME10 0x1e
511 #define CAL_SMONTHNAME11 0x1f
512 #define CAL_SMONTHNAME12 0x20
513 #define CAL_SMONTHNAME13 0x21
514 #define CAL_SABBREVMONTHNAME1 0x22
515 #define CAL_SABBREVMONTHNAME2 0x23
516 #define CAL_SABBREVMONTHNAME3 0x24
517 #define CAL_SABBREVMONTHNAME4 0x25
518 #define CAL_SABBREVMONTHNAME5 0x26
519 #define CAL_SABBREVMONTHNAME6 0x27
520 #define CAL_SABBREVMONTHNAME7 0x28
521 #define CAL_SABBREVMONTHNAME8 0x29
522 #define CAL_SABBREVMONTHNAME9 0x2a
523 #define CAL_SABBREVMONTHNAME10 0x2b
524 #define CAL_SABBREVMONTHNAME11 0x2c
525 #define CAL_SABBREVMONTHNAME12 0x2d
526 #define CAL_SABBREVMONTHNAME13 0x2e
527 #define CAL_SYEARMONTH 0x2f
528 #define CAL_ITWODIGITYEARMAX 0x30
529 #define CAL_SSHORTESTDAYNAME1 0x31
530 #define CAL_SSHORTESTDAYNAME2 0x32
531 #define CAL_SSHORTESTDAYNAME3 0x33
532 #define CAL_SSHORTESTDAYNAME4 0x34
533 #define CAL_SSHORTESTDAYNAME5 0x35
534 #define CAL_SSHORTESTDAYNAME6 0x36
535 #define CAL_SSHORTESTDAYNAME7 0x37
536 #define CAL_SMONTHDAY 0x38
537 #define CAL_SABBREVERASTRING 0x39
539 /* Calendar types */
540 #define CAL_GREGORIAN 1
541 #define CAL_GREGORIAN_US 2
542 #define CAL_JAPAN 3
543 #define CAL_TAIWAN 4
544 #define CAL_KOREA 5
545 #define CAL_HIJRI 6
546 #define CAL_THAI 7
547 #define CAL_HEBREW 8
548 #define CAL_GREGORIAN_ME_FRENCH 9
549 #define CAL_GREGORIAN_ARABIC 10
550 #define CAL_GREGORIAN_XLIT_ENGLISH 11
551 #define CAL_GREGORIAN_XLIT_FRENCH 12
552 #define CAL_PERSIAN 22
553 #define CAL_UMALQURA 23
555 /* EnumCalendarInfo Flags */
556 #define ENUM_ALL_CALENDARS 0xffffffff /* Enumerate all calendars within a locale */
558 /* CompareString results */
559 #define CSTR_LESS_THAN 1
560 #define CSTR_EQUAL 2
561 #define CSTR_GREATER_THAN 3
564 * Language Group IDs.
565 * Resources in kernel32 are LGRPID_xxx+0x2000 because low values were used by LOCALE_xxx
566 * This is done because resources in win2k kernel32 / winxp kernel32 are not even
567 * stored the same way.
569 #define LGRPID_WESTERN_EUROPE 0x01 /* Includes US and Africa */
570 #define LGRPID_CENTRAL_EUROPE 0x02
571 #define LGRPID_BALTIC 0x03
572 #define LGRPID_GREEK 0x04
573 #define LGRPID_CYRILLIC 0x05
574 #define LGRPID_TURKISH 0x06
575 #define LGRPID_JAPANESE 0x07
576 #define LGRPID_KOREAN 0x08
577 #define LGRPID_TRADITIONAL_CHINESE 0x09
578 #define LGRPID_SIMPLIFIED_CHINESE 0x0A
579 #define LGRPID_THAI 0x0B
580 #define LGRPID_HEBREW 0x0C
581 #define LGRPID_ARABIC 0x0D
582 #define LGRPID_VIETNAMESE 0x0E
583 #define LGRPID_INDIC 0x0F
584 #define LGRPID_GEORGIAN 0x10
585 #define LGRPID_ARMENIAN 0x11
587 /* IDN defines. */
588 #define IDN_ALLOW_UNASSIGNED 0x1
589 #define IDN_USE_STD3_ASCII_RULES 0x2
591 /* MUI defines. */
592 #define MUI_LANGUAGE_ID 0x04
593 #define MUI_LANGUAGE_NAME 0x08
594 #define MUI_MERGE_SYSTEM_FALLBACK 0x10
595 #define MUI_MERGE_USER_FALLBACK 0x20
596 #define MUI_UI_FALLBACK MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
597 #define MUI_THREAD_LANGUAGES 0x40
598 #define MUI_CONSOLE_FILTER 0x100
599 #define MUI_COMPLEX_SCRIPT_FILTER 0x200
600 #define MUI_RESET_FILTERS 0x001
601 #define MUI_USER_PREFERRED_UI_LANGUAGES 0x10
602 #define MUI_USE_INSTALLED_LANGUAGES 0x20
603 #define MUI_USE_SEARCH_ALL_LANGUAGES 0x40
604 #define MUI_LANG_NEUTRAL_PE_FILE 0x100
605 #define MUI_NON_LANG_NEUTRAL_FILE 0x200
606 #define MUI_MACHINE_LANGUAGE_SETTINGS 0x400
607 #define MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL 0x001
608 #define MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN 0x002
609 #define MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI 0x004
610 #define MUI_QUERY_TYPE 0x001
611 #define MUI_QUERY_CHECKSUM 0x002
612 #define MUI_QUERY_LANGUAGE_NAME 0x004
613 #define MUI_QUERY_RESOURCE_TYPES 0x008
614 #define MUI_FILEINFO_VERSION 0x001
615 #define MUI_FULL_LANGUAGE 0x01
616 #define MUI_PARTIAL_LANGUAGE 0x02
617 #define MUI_LIP_LANGUAGE 0x04
618 #define MUI_LANGUAGE_INSTALLED 0x20
619 #define MUI_LANGUAGE_LICENSED 0x40
621 typedef struct _FILEMUIINFO {
622 DWORD dwSize;
623 DWORD dwVersion;
624 DWORD dwFileType;
625 BYTE pChecksum[16];
626 BYTE pServiceChecksum[16];
627 DWORD dwLanguageNameOffset;
628 DWORD dwTypeIDMainSize;
629 DWORD dwTypeIDMainOffset;
630 DWORD dwTypeNameMainOffset;
631 DWORD dwTypeIDMUISize;
632 DWORD dwTypeIDMUIOffset;
633 DWORD dwTypeNameMUIOffset;
634 BYTE abBuffer[8];
635 } FILEMUIINFO, *PFILEMUIINFO;
637 /* Types
640 typedef enum _NORM_FORM {
641 NormalizationOther = 0,
642 NormalizationC = 0x1,
643 NormalizationD = 0x2,
644 NormalizationKC = 0x5,
645 NormalizationKD = 0x6
646 } NORM_FORM;
648 typedef DWORD CALID;
649 typedef DWORD CALTYPE;
650 typedef LONG GEOID;
651 typedef DWORD GEOCLASS;
652 typedef DWORD GEOTYPE;
653 typedef DWORD LCTYPE;
654 typedef DWORD LGRPID;
656 typedef struct
658 UINT MaxCharSize;
659 BYTE DefaultChar[MAX_DEFAULTCHAR];
660 BYTE LeadByte[MAX_LEADBYTES];
661 } CPINFO, *LPCPINFO;
663 typedef struct
665 UINT MaxCharSize;
666 BYTE DefaultChar[MAX_DEFAULTCHAR];
667 BYTE LeadByte[MAX_LEADBYTES];
668 WCHAR UnicodeDefaultChar;
669 UINT CodePage;
670 CHAR CodePageName[MAX_PATH];
671 } CPINFOEXA, *LPCPINFOEXA;
673 typedef struct
675 UINT MaxCharSize;
676 BYTE DefaultChar[MAX_DEFAULTCHAR];
677 BYTE LeadByte[MAX_LEADBYTES];
678 WCHAR UnicodeDefaultChar;
679 UINT CodePage;
680 WCHAR CodePageName[MAX_PATH];
681 } CPINFOEXW, *LPCPINFOEXW;
683 DECL_WINELIB_TYPE_AW(CPINFOEX)
684 DECL_WINELIB_TYPE_AW(LPCPINFOEX)
686 typedef struct _numberfmtA {
687 UINT NumDigits;
688 UINT LeadingZero;
689 UINT Grouping;
690 LPSTR lpDecimalSep;
691 LPSTR lpThousandSep;
692 UINT NegativeOrder;
693 } NUMBERFMTA, *LPNUMBERFMTA;
695 typedef struct _numberfmtW {
696 UINT NumDigits;
697 UINT LeadingZero;
698 UINT Grouping;
699 LPWSTR lpDecimalSep;
700 LPWSTR lpThousandSep;
701 UINT NegativeOrder;
702 } NUMBERFMTW, *LPNUMBERFMTW;
704 DECL_WINELIB_TYPE_AW(NUMBERFMT)
705 DECL_WINELIB_TYPE_AW(LPNUMBERFMT)
707 typedef struct _currencyfmtA
709 UINT NumDigits;
710 UINT LeadingZero;
711 UINT Grouping;
712 LPSTR lpDecimalSep;
713 LPSTR lpThousandSep;
714 UINT NegativeOrder;
715 UINT PositiveOrder;
716 LPSTR lpCurrencySymbol;
717 } CURRENCYFMTA, *LPCURRENCYFMTA;
719 typedef struct _currencyfmtW
721 UINT NumDigits;
722 UINT LeadingZero;
723 UINT Grouping;
724 LPWSTR lpDecimalSep;
725 LPWSTR lpThousandSep;
726 UINT NegativeOrder;
727 UINT PositiveOrder;
728 LPWSTR lpCurrencySymbol;
729 } CURRENCYFMTW, *LPCURRENCYFMTW;
731 DECL_WINELIB_TYPE_AW(CURRENCYFMT)
732 DECL_WINELIB_TYPE_AW(LPCURRENCYFMT)
734 typedef struct _nlsversioninfo {
735 DWORD dwNLSVersionInfoSize;
736 DWORD dwNLSVersion;
737 DWORD dwDefinedVersion;
738 } NLSVERSIONINFO, *LPNLSVERSIONINFO;
740 typedef struct _nlsversioninfoex {
741 DWORD dwNLSVersionInfoSize;
742 DWORD dwNLSVersion;
743 DWORD dwDefinedVersion;
744 DWORD dwEffectiveId;
745 GUID guidCustomVersion;
746 } NLSVERSIONINFOEX, *LPNLSVERSIONINFOEX;
748 /* Define a bunch of callback types */
750 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXEX)(LPWSTR,CALID,LPWSTR,LPARAM);
751 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXEX)(LPWSTR,CALID,LPARAM);
752 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCEX)(LPWSTR,LPARAM);
753 #if defined(STRICT)
754 typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR);
755 typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR);
756 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR,CALID);
757 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR,CALID);
758 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
759 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
760 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
761 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
762 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR,CALID);
763 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID);
764 typedef BOOL (CALLBACK *GEO_ENUMPROC)(GEOID);
765 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID,LCID,LPSTR,LONG_PTR);
766 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID,LCID,LPWSTR,LONG_PTR);
767 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCA)(LGRPID,LPSTR,LPSTR,DWORD,LONG_PTR);
768 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID,LPWSTR,LPWSTR,DWORD,LONG_PTR);
769 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
770 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
771 typedef BOOL (CALLBACK *LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM);
772 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
773 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
774 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCA)(LPSTR,LONG_PTR);
775 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCW)(LPWSTR,LONG_PTR);
776 #else
777 typedef FARPROC CALINFO_ENUMPROCA;
778 typedef FARPROC CALINFO_ENUMPROCW;
779 typedef FARPROC CALINFO_ENUMPROCEXA;
780 typedef FARPROC CALINFO_ENUMPROCEXW;
781 typedef FARPROC CODEPAGE_ENUMPROCA;
782 typedef FARPROC CODEPAGE_ENUMPROCW;
783 typedef FARPROC DATEFMT_ENUMPROCA;
784 typedef FARPROC DATEFMT_ENUMPROCW;
785 typedef FARPROC DATEFMT_ENUMPROCEXA;
786 typedef FARPROC DATEFMT_ENUMPROCEXW;
787 typedef FARPROC GEO_ENUMPROC;
788 typedef FARPROC LANGGROUPLOCALE_ENUMPROCA;
789 typedef FARPROC LANGGROUPLOCALE_ENUMPROCW;
790 typedef FARPROC LANGUAGEGROUP_ENUMPROCA;
791 typedef FARPROC LANGUAGEGROUP_ENUMPROCW;
792 typedef FARPROC LOCALE_ENUMPROCA;
793 typedef FARPROC LOCALE_ENUMPROCW;
794 typedef FARPROC TIMEFMT_ENUMPROCA;
795 typedef FARPROC TIMEFMT_ENUMPROCW;
796 typedef FARPROC UILANGUAGE_ENUMPROCA;
797 typedef FARPROC UILANGUAGE_ENUMPROCW;
798 #endif /* STRICT */
800 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
801 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROCEX)
802 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
803 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC)
804 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROCEX)
805 DECL_WINELIB_TYPE_AW(LANGGROUPLOCALE_ENUMPROC)
806 DECL_WINELIB_TYPE_AW(LANGUAGEGROUP_ENUMPROC)
807 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
808 DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC)
809 DECL_WINELIB_TYPE_AW(UILANGUAGE_ENUMPROC)
811 /* Geographic Information types */
812 enum SYSGEOTYPE
814 GEO_NATION = 1,
815 GEO_LATITUDE,
816 GEO_LONGITUDE,
817 GEO_ISO2,
818 GEO_ISO3,
819 GEO_RFC1766,
820 GEO_LCID,
821 GEO_FRIENDLYNAME,
822 GEO_OFFICIALNAME,
823 GEO_TIMEZONES,
824 GEO_OFFICIALLANGUAGES,
825 GEO_ISO_UN_NUMBER,
826 GEO_PARENT,
827 GEO_DIALINGCODE,
828 GEO_CURRENCYCODE,
829 GEO_CURRENCYSYMBOL,
830 GEO_NAME,
831 GEO_ID
834 enum SYSGEOCLASS
836 GEOCLASS_ALL = 0,
837 GEOCLASS_REGION = 14,
838 GEOCLASS_NATION = 16
841 #define GEOID_NOT_AVAILABLE (-1)
844 /* NLS Functions.
847 WINBASEAPI INT WINAPI CompareStringA(LCID,DWORD,LPCSTR,INT,LPCSTR,INT);
848 WINBASEAPI INT WINAPI CompareStringW(LCID,DWORD,LPCWSTR,INT,LPCWSTR,INT);
849 #define CompareString WINELIB_NAME_AW(CompareString)
850 WINBASEAPI INT WINAPI CompareStringEx(LPCWSTR,DWORD,LPCWSTR,INT,LPCWSTR,INT,LPNLSVERSIONINFO,LPVOID,LPARAM);
851 WINBASEAPI INT WINAPI CompareStringOrdinal(const WCHAR *,INT,const WCHAR *,INT,BOOL);
852 WINBASEAPI LCID WINAPI ConvertDefaultLocale(LCID);
853 WINBASEAPI BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE);
854 WINBASEAPI BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE);
855 #define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo)
856 WINBASEAPI BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE);
857 WINBASEAPI BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE);
858 #define EnumCalendarInfoEx WINELIB_NAME_AW(EnumCalendarInfoEx)
859 WINBASEAPI BOOL WINAPI EnumCalendarInfoExEx(CALINFO_ENUMPROCEXEX,LPCWSTR,CALID,LPCWSTR,CALTYPE,LPARAM);
860 WINBASEAPI BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD);
861 WINBASEAPI BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD);
862 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
863 WINBASEAPI BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD);
864 WINBASEAPI BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD);
865 #define EnumDateFormatsEx WINELIB_NAME_AW(EnumDateFormatsEx)
866 WINBASEAPI BOOL WINAPI EnumDateFormatsExEx(DATEFMT_ENUMPROCEXEX,LPCWSTR,DWORD,LPARAM);
867 WINBASEAPI BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
868 WINBASEAPI BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
869 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
870 WINBASEAPI BOOL WINAPI EnumSystemGeoID(GEOCLASS,GEOID,GEO_ENUMPROC);
871 WINBASEAPI BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
872 WINBASEAPI BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
873 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
874 WINBASEAPI BOOL WINAPI EnumSystemLocalesEx(LOCALE_ENUMPROCEX,DWORD,LPARAM,LPVOID);
875 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR);
876 WINBASEAPI BOOL WINAPI EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR);
877 #define EnumSystemLanguageGroups WINELIB_NAME_AW(EnumSystemLanguageGroups)
878 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR);
879 WINBASEAPI BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR);
880 #define EnumLanguageGroupLocales WINELIB_NAME_AW(EnumLanguageGroupLocales)
881 WINBASEAPI BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD);
882 WINBASEAPI BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD);
883 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
884 WINBASEAPI BOOL WINAPI EnumTimeFormatsEx(TIMEFMT_ENUMPROCEX,LPCWSTR,DWORD,LPARAM);
885 WINBASEAPI BOOL WINAPI EnumUILanguagesA(UILANGUAGE_ENUMPROCA,DWORD,LONG_PTR);
886 WINBASEAPI BOOL WINAPI EnumUILanguagesW(UILANGUAGE_ENUMPROCW,DWORD,LONG_PTR);
887 #define EnumUILanguages WINELIB_NAME_AW(EnumUILanguages)
888 WINBASEAPI INT WINAPI FoldStringA(DWORD,LPCSTR,INT,LPSTR,INT);
889 WINBASEAPI INT WINAPI FoldStringW(DWORD,LPCWSTR,INT,LPWSTR,INT);
890 #define FoldString WINELIB_NAME_AW(FoldString)
891 WINBASEAPI UINT WINAPI GetACP(void);
892 WINBASEAPI BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
893 WINBASEAPI BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA);
894 WINBASEAPI BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW);
895 #define GetCPInfoEx WINELIB_NAME_AW(GetCPInfoEx)
896 WINBASEAPI INT WINAPI GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD);
897 WINBASEAPI INT WINAPI GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD);
898 #define GetCalendarInfo WINELIB_NAME_AW(GetCalendarInfo)
899 WINBASEAPI INT WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,INT);
900 WINBASEAPI INT WINAPI GetCurrencyFormatEx(LPCWSTR,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,int);
901 WINBASEAPI INT WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,INT);
902 #define GetCurrencyFormat WINELIB_NAME_AW(GetCurrencyFormat)
903 WINBASEAPI INT WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
904 WINBASEAPI INT WINAPI GetDateFormatEx(LPCWSTR,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT,LPCWSTR);
905 WINBASEAPI INT WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
906 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
907 WINBASEAPI BOOL WINAPI GetFileMUIInfo(DWORD,PCWSTR,PFILEMUIINFO,DWORD*);
908 WINBASEAPI BOOL WINAPI GetFileMUIPath(DWORD,PCWSTR,PWSTR,PULONG,PWSTR,PULONG,PULONGLONG);
909 WINBASEAPI INT WINAPI GetGeoInfoA(GEOID,GEOTYPE,LPSTR,INT,LANGID);
910 WINBASEAPI INT WINAPI GetGeoInfoW(GEOID,GEOTYPE,LPWSTR,INT,LANGID);
911 #define GetGeoInfo WINELIB_NAME_AW(GetGeoInfo)
912 WINBASEAPI INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
913 WINBASEAPI INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
914 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
915 WINBASEAPI INT WINAPI GetLocaleInfoEx(LPCWSTR,LCTYPE,LPWSTR,INT);
916 WINBASEAPI INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,INT);
917 WINBASEAPI INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,INT);
918 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat)
919 WINBASEAPI UINT WINAPI GetOEMCP(void);
920 WINBASEAPI BOOL WINAPI GetProcessPreferredUILanguages(DWORD,PULONG,PZZWSTR,PULONG);
921 WINBASEAPI BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
922 WINBASEAPI BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
923 WINBASEAPI BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
924 WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
925 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
926 WINBASEAPI LANGID WINAPI GetSystemDefaultLangID(void);
927 WINBASEAPI INT WINAPI GetSystemDefaultLocaleName(LPWSTR,int);
928 WINBASEAPI LCID WINAPI GetSystemDefaultLCID(void);
929 WINBASEAPI LANGID WINAPI GetSystemDefaultUILanguage(void);
930 WINBASEAPI BOOL WINAPI GetSystemPreferredUILanguages(DWORD,ULONG*,WCHAR*,ULONG*);
931 WINBASEAPI LCID WINAPI GetThreadLocale(void);
932 WINBASEAPI BOOL WINAPI GetThreadPreferredUILanguages(DWORD,ULONG*,WCHAR*,ULONG*);
933 WINBASEAPI LANGID WINAPI GetThreadUILanguage(void);
934 WINBASEAPI INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
935 WINBASEAPI INT WINAPI GetTimeFormatEx(LPCWSTR,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
936 WINBASEAPI INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
937 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
938 WINBASEAPI LANGID WINAPI GetUserDefaultLangID(void);
939 WINBASEAPI LCID WINAPI GetUserDefaultLCID(void);
940 WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int);
941 WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void);
942 WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS);
943 WINNORMALIZEAPI INT WINAPI IdnToAscii(DWORD,LPCWSTR,INT,LPWSTR,INT);
944 WINNORMALIZEAPI INT WINAPI IdnToNameprepUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT);
945 WINNORMALIZEAPI INT WINAPI IdnToUnicode(DWORD,LPCWSTR,INT,LPWSTR,INT);
946 WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);
947 WINBASEAPI BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
948 WINNORMALIZEAPI BOOL WINAPI IsNormalizedString(NORM_FORM,LPCWSTR,INT);
949 WINBASEAPI BOOL WINAPI IsValidCodePage(UINT);
950 WINBASEAPI BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD);
951 WINBASEAPI BOOL WINAPI IsValidLocale(LCID,DWORD);
952 WINBASEAPI BOOL WINAPI IsValidLocaleName(LPCWSTR);
953 WINBASEAPI INT WINAPI LCIDToLocaleName(LCID,LPWSTR,INT,DWORD);
954 WINBASEAPI INT WINAPI LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT);
955 WINBASEAPI INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT);
956 #define LCMapString WINELIB_NAME_AW(LCMapString)
957 WINBASEAPI INT WINAPI LCMapStringEx(LPCWSTR,DWORD,LPCWSTR,INT,LPWSTR,INT,LPNLSVERSIONINFO,LPVOID,LPARAM);
958 WINBASEAPI LCID WINAPI LocaleNameToLCID(LPCWSTR,DWORD);
959 WINBASEAPI INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
960 WINNORMALIZEAPI INT WINAPI NormalizeString(NORM_FORM,LPCWSTR,INT,LPWSTR,INT);
961 WINBASEAPI INT WINAPI ResolveLocaleName(LPCWSTR,LPWSTR,INT);
962 WINBASEAPI INT WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR);
963 WINBASEAPI INT WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR);
964 #define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo)
965 WINBASEAPI BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR);
966 WINBASEAPI BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR);
967 #define SetLocaleInfo WINELIB_NAME_AW(SetLocaleInfo)
968 WINBASEAPI BOOL WINAPI SetThreadLocale(LCID);
969 WINBASEAPI LANGID WINAPI SetThreadUILanguage(LANGID);
970 WINBASEAPI BOOL WINAPI SetUserGeoID(GEOID);
971 WINBASEAPI INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL);
972 WINBASEAPI INT WINAPI FindNLSStringEx(const WCHAR *,DWORD,const WCHAR *,INT,const WCHAR *,INT,INT *,NLSVERSIONINFO *,void *,LPARAM);
974 #ifdef __cplusplus
976 #endif
978 #endif /* !NONLS */
979 #endif /* __WINE_WINNLS_H */