[PSDK]
[reactos.git] / reactos / include / psdk / winnls.h
1 #ifndef _WINNLS_
2 #define _WINNLS_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #ifdef _MSC_VER
9 #pragma warning(push)
10 #pragma warning(disable:4820)
11 #endif
12
13 #define GEOID_NOT_AVAILABLE (-1)
14 #define MAX_LEADBYTES 12
15 #define MAX_DEFAULTCHAR 2
16
17 #define LOCALE_ALL 0x00
18
19 #define LOCALE_NOUSEROVERRIDE 0x80000000
20 #define LOCALE_USE_CP_ACP 0x40000000
21 #if (WINVER >= 0x0400)
22 #define LOCALE_RETURN_NUMBER 0x20000000
23 #endif
24 #define LOCALE_RETURN_GENITIVE_NAMES 0x10000000
25 #define LOCALE_ILANGUAGE 1
26 #define LOCALE_SLANGUAGE 2
27 #define LOCALE_SENGLANGUAGE 0x1001
28 #define LOCALE_SABBREVLANGNAME 3
29 #define LOCALE_SNATIVELANGNAME 4
30 #define LOCALE_ICOUNTRY 5
31 #define LOCALE_SCOUNTRY 6
32 #define LOCALE_SENGCOUNTRY 0x1002
33 #define LOCALE_SABBREVCTRYNAME 7
34 #define LOCALE_SNATIVECTRYNAME 8
35 #define LOCALE_IDEFAULTLANGUAGE 9
36 #define LOCALE_IDEFAULTCOUNTRY 10
37 #define LOCALE_IDEFAULTCODEPAGE 11
38 #define LOCALE_IDEFAULTANSICODEPAGE 0x1004
39 #define LOCALE_IDEFAULTMACCODEPAGE 0x1011
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_SSCRIPTS 108
120 #define LOCALE_IPOSSIGNPOSN 82
121 #define LOCALE_INEGSIGNPOSN 83
122 #define LOCALE_IPOSSYMPRECEDES 84
123 #define LOCALE_IPOSSEPBYSPACE 85
124 #define LOCALE_INEGSYMPRECEDES 86
125 #define LOCALE_INEGSEPBYSPACE 87
126 #if (WINVER >= 0x0400)
127 #define LOCALE_FONTSIGNATURE 88
128 #define LOCALE_SISO639LANGNAME 89
129 #define LOCALE_SISO3166CTRYNAME 90
130 #define LOCALE_SNAME 92
131 #endif
132 #if (WINVER >= 0x0600)
133 #define LOCALE_SSCRIPTS 108
134 #endif
135 #define LOCALE_SYSTEM_DEFAULT 0x800
136 #define LOCALE_USER_DEFAULT 0x400
137
138 #define LOCALE_IREADINGLAYOUT 0x0070
139 #define LOCALE_INEUTRAL 0x0071
140
141 #if defined(__GNUC__)
142 # define LOCALE_NAME_INVARIANT (const WCHAR []){ 0 }
143 #elif defined(_MSC_VER)
144 # define LOCALE_NAME_INVARIANT L""
145 #else
146 static const WCHAR LOCALE_NAME_INVARIANT[] = { 0 };
147 #endif
148
149 #if defined(__GNUC__)
150 # define LOCALE_NAME_SYSTEM_DEFAULT (const WCHAR []){'!','s','y','s','-','d','e','f','a','u','l','t','-','l','o','c','a','l','e',0}
151 #elif defined(_MSC_VER)
152 # define LOCALE_NAME_SYSTEM_DEFAULT L"!sys-default-locale"
153 #else
154 static const WCHAR LOCALE_NAME_SYSTEM_DEFAULT[] = {'!','s','y','s','-','d','e','f','a','u','l','t','-','l','o','c','a','l','e',0};
155 #endif
156
157 #define LOCALE_NAME_USER_DEFAULT NULL
158
159 #define LOCALE_IDEFAULTUNIXCODEPAGE 0x1030 /* Wine extension */
160
161 #define NORM_IGNORECASE 1
162 #define NORM_IGNOREKANATYPE 65536
163 #define NORM_IGNORENONSPACE 2
164 #define NORM_IGNORESYMBOLS 4
165 #define NORM_IGNOREWIDTH 131072
166 #define SORT_STRINGSORT 4096
167 #define LCMAP_LOWERCASE 0x00000100
168 #define LCMAP_UPPERCASE 0x00000200
169 #define LCMAP_SORTKEY 0x00000400
170 #define LCMAP_BYTEREV 0x00000800
171 #define LCMAP_HIRAGANA 0x00100000
172 #define LCMAP_KATAKANA 0x00200000
173 #define LCMAP_HALFWIDTH 0x00400000
174 #define LCMAP_FULLWIDTH 0x00800000
175 #define LCMAP_LINGUISTIC_CASING 0x01000000
176 #define LCMAP_SIMPLIFIED_CHINESE 0x02000000
177 #define LCMAP_TRADITIONAL_CHINESE 0x04000000
178 #define ENUM_ALL_CALENDARS (-1)
179 #define DATE_SHORTDATE 1
180 #define DATE_LONGDATE 2
181 #define DATE_USE_ALT_CALENDAR 4
182 #define CP_INSTALLED 1
183 #define CP_SUPPORTED 2
184 #define LCID_INSTALLED 1
185 #define LCID_SUPPORTED 2
186 #define LCID_ALTERNATE_SORTS 4
187 #define MAP_FOLDCZONE 16
188 #define MAP_FOLDDIGITS 128
189 #define MAP_PRECOMPOSED 32
190 #define MAP_COMPOSITE 64
191
192 #define WC_DISCARDNS 0x0010
193 #define WC_SEPCHARS 0x0020
194 #define WC_DEFAULTCHAR 0x0040
195 #define WC_ERR_INVALID_CHARS 0x0080
196 #define WC_COMPOSITECHECK 0x0200
197 #if (WINVER >= 0x0500)
198 #define WC_NO_BEST_FIT_CHARS 0x0400
199 #endif
200
201 #define CP_ACP 0
202 #ifdef _WINE
203 #define CP_UNIXCP CP_ACP
204 #endif
205 #define CP_OEMCP 1
206 #define CP_MACCP 2
207 #define CP_THREAD_ACP 3
208 #define CP_SYMBOL 42
209 #define CP_UTF7 65000
210 #define CP_UTF8 65001
211 #define CT_CTYPE1 1
212 #define CT_CTYPE2 2
213 #define CT_CTYPE3 4
214 #define C1_UPPER 1
215 #define C1_LOWER 2
216 #define C1_DIGIT 4
217 #define C1_SPACE 8
218 #define C1_PUNCT 16
219 #define C1_CNTRL 32
220 #define C1_BLANK 64
221 #define C1_XDIGIT 128
222 #define C1_ALPHA 256
223 #define C1_DEFINED 512
224 #define C2_LEFTTORIGHT 1
225 #define C2_RIGHTTOLEFT 2
226 #define C2_EUROPENUMBER 3
227 #define C2_EUROPESEPARATOR 4
228 #define C2_EUROPETERMINATOR 5
229 #define C2_ARABICNUMBER 6
230 #define C2_COMMONSEPARATOR 7
231 #define C2_BLOCKSEPARATOR 8
232 #define C2_SEGMENTSEPARATOR 9
233 #define C2_WHITESPACE 10
234 #define C2_OTHERNEUTRAL 11
235 #define C2_NOTAPPLICABLE 0
236 #define C3_NONSPACING 1
237 #define C3_DIACRITIC 2
238 #define C3_VOWELMARK 4
239 #define C3_SYMBOL 8
240 #define C3_KATAKANA 16
241 #define C3_HIRAGANA 32
242 #define C3_HALFWIDTH 64
243 #define C3_FULLWIDTH 128
244 #define C3_IDEOGRAPH 256
245 #define C3_KASHIDA 512
246 #define C3_LEXICAL 1024
247 #define C3_ALPHA 32768
248 #define C3_NOTAPPLICABLE 0
249 #define TIME_NOMINUTESORSECONDS 1
250 #define TIME_NOSECONDS 2
251 #define TIME_NOTIMEMARKER 4
252 #define TIME_FORCE24HOURFORMAT 8
253 #define MB_PRECOMPOSED 1
254 #define MB_COMPOSITE 2
255 #define MB_ERR_INVALID_CHARS 8
256 #define MB_USEGLYPHCHARS 4
257 #define CTRY_DEFAULT 0
258 #define CTRY_ALBANIA 355
259 #define CTRY_ALGERIA 213
260 #define CTRY_ARGENTINA 54
261 #define CTRY_ARMENIA 374
262 #define CTRY_AUSTRALIA 61
263 #define CTRY_AUSTRIA 43
264 #define CTRY_AZERBAIJAN 994
265 #define CTRY_BAHRAIN 973
266 #define CTRY_BELARUS 375
267 #define CTRY_BELGIUM 32
268 #define CTRY_BELIZE 501
269 #define CTRY_BOLIVIA 591
270 #define CTRY_BRAZIL 55
271 #define CTRY_BRUNEI_DARUSSALAM 673
272 #define CTRY_BULGARIA 359
273 #define CTRY_CANADA 2
274 #define CTRY_CARIBBEAN 1
275 #define CTRY_CHILE 56
276 #define CTRY_COLOMBIA 57
277 #define CTRY_COSTA_RICA 506
278 #define CTRY_CROATIA 385
279 #define CTRY_CZECH 420
280 #define CTRY_DENMARK 45
281 #define CTRY_DOMINICAN_REPUBLIC 1
282 #define CTRY_ECUADOR 593
283 #define CTRY_EGYPT 20
284 #define CTRY_EL_SALVADOR 503
285 #define CTRY_ESTONIA 372
286 #define CTRY_FAEROE_ISLANDS 298
287 #define CTRY_FINLAND 358
288 #define CTRY_FRANCE 33
289 #define CTRY_GEORGIA 995
290 #define CTRY_GERMANY 49
291 #define CTRY_GREECE 30
292 #define CTRY_GUATEMALA 502
293 #define CTRY_HONDURAS 504
294 #define CTRY_HONG_KONG 852
295 #define CTRY_HUNGARY 36
296 #define CTRY_ICELAND 354
297 #define CTRY_INDIA 91
298 #define CTRY_INDONESIA 62
299 #define CTRY_IRAN 981
300 #define CTRY_IRAQ 964
301 #define CTRY_IRELAND 353
302 #define CTRY_ISRAEL 972
303 #define CTRY_ITALY 39
304 #define CTRY_JAMAICA 1
305 #define CTRY_JAPAN 81
306 #define CTRY_JORDAN 962
307 #define CTRY_KAZAKSTAN 7
308 #define CTRY_KENYA 254
309 #define CTRY_KUWAIT 965
310 #define CTRY_KYRGYZSTAN 996
311 #define CTRY_LATVIA 371
312 #define CTRY_LEBANON 961
313 #define CTRY_LIBYA 218
314 #define CTRY_LIECHTENSTEIN 41
315 #define CTRY_LITHUANIA 370
316 #define CTRY_LUXEMBOURG 352
317 #define CTRY_MACAU 853
318 #define CTRY_MACEDONIA 389
319 #define CTRY_MALAYSIA 60
320 #define CTRY_MALDIVES 960
321 #define CTRY_MEXICO 52
322 #define CTRY_MONACO 33
323 #define CTRY_MONGOLIA 976
324 #define CTRY_MOROCCO 212
325 #define CTRY_NETHERLANDS 31
326 #define CTRY_NEW_ZEALAND 64
327 #define CTRY_NICARAGUA 505
328 #define CTRY_NORWAY 47
329 #define CTRY_OMAN 968
330 #define CTRY_PAKISTAN 92
331 #define CTRY_PANAMA 507
332 #define CTRY_PARAGUAY 595
333 #define CTRY_PERU 51
334 #define CTRY_PHILIPPINES 63
335 #define CTRY_POLAND 48
336 #define CTRY_PORTUGAL 351
337 #define CTRY_PRCHINA 86
338 #define CTRY_PUERTO_RICO 1
339 #define CTRY_QATAR 974
340 #define CTRY_ROMANIA 40
341 #define CTRY_RUSSIA 7
342 #define CTRY_SAUDI_ARABIA 966
343 #define CTRY_SERBIA 381
344 #define CTRY_SINGAPORE 65
345 #define CTRY_SLOVAK 421
346 #define CTRY_SLOVENIA 386
347 #define CTRY_SOUTH_AFRICA 27
348 #define CTRY_SOUTH_KOREA 82
349 #define CTRY_SPAIN 34
350 #define CTRY_SWEDEN 46
351 #define CTRY_SWITZERLAND 41
352 #define CTRY_SYRIA 963
353 #define CTRY_TAIWAN 886
354 #define CTRY_TATARSTAN 7
355 #define CTRY_THAILAND 66
356 #define CTRY_TRINIDAD_Y_TOBAGO 1
357 #define CTRY_TUNISIA 216
358 #define CTRY_TURKEY 90
359 #define CTRY_UAE 971
360 #define CTRY_UKRAINE 380
361 #define CTRY_UNITED_KINGDOM 44
362 #define CTRY_UNITED_STATES 1
363 #define CTRY_URUGUAY 598
364 #define CTRY_UZBEKISTAN 7
365 #define CTRY_VENEZUELA 58
366 #define CTRY_VIET_NAM 84
367 #define CTRY_YEMEN 967
368 #define CTRY_ZIMBABWE 263
369 #define CAL_ICALINTVALUE 1
370 #define CAL_SCALNAME 2
371 #define CAL_IYEAROFFSETRANGE 3
372 #define CAL_SERASTRING 4
373 #define CAL_SSHORTDATE 5
374 #define CAL_SLONGDATE 6
375 #define CAL_SDAYNAME1 7
376 #define CAL_SDAYNAME2 8
377 #define CAL_SDAYNAME3 9
378 #define CAL_SDAYNAME4 10
379 #define CAL_SDAYNAME5 11
380 #define CAL_SDAYNAME6 12
381 #define CAL_SDAYNAME7 13
382 #define CAL_SABBREVDAYNAME1 14
383 #define CAL_SABBREVDAYNAME2 15
384 #define CAL_SABBREVDAYNAME3 16
385 #define CAL_SABBREVDAYNAME4 17
386 #define CAL_SABBREVDAYNAME5 18
387 #define CAL_SABBREVDAYNAME6 19
388 #define CAL_SABBREVDAYNAME7 20
389 #define CAL_SMONTHNAME1 21
390 #define CAL_SMONTHNAME2 22
391 #define CAL_SMONTHNAME3 23
392 #define CAL_SMONTHNAME4 24
393 #define CAL_SMONTHNAME5 25
394 #define CAL_SMONTHNAME6 26
395 #define CAL_SMONTHNAME7 27
396 #define CAL_SMONTHNAME8 28
397 #define CAL_SMONTHNAME9 29
398 #define CAL_SMONTHNAME10 30
399 #define CAL_SMONTHNAME11 31
400 #define CAL_SMONTHNAME12 32
401 #define CAL_SMONTHNAME13 33
402 #define CAL_SABBREVMONTHNAME1 34
403 #define CAL_SABBREVMONTHNAME2 35
404 #define CAL_SABBREVMONTHNAME3 36
405 #define CAL_SABBREVMONTHNAME4 37
406 #define CAL_SABBREVMONTHNAME5 38
407 #define CAL_SABBREVMONTHNAME6 39
408 #define CAL_SABBREVMONTHNAME7 40
409 #define CAL_SABBREVMONTHNAME8 41
410 #define CAL_SABBREVMONTHNAME9 42
411 #define CAL_SABBREVMONTHNAME10 43
412 #define CAL_SABBREVMONTHNAME11 44
413 #define CAL_SABBREVMONTHNAME12 45
414 #define CAL_SABBREVMONTHNAME13 46
415 #define CAL_GREGORIAN 1
416 #define CAL_GREGORIAN_US 2
417 #define CAL_JAPAN 3
418 #define CAL_TAIWAN 4
419 #define CAL_KOREA 5
420 #define CAL_HIJRI 6
421 #define CAL_THAI 7
422 #define CAL_HEBREW 8
423 #define CAL_GREGORIAN_ME_FRENCH 9
424 #define CAL_GREGORIAN_ARABIC 10
425 #define CAL_GREGORIAN_XLIT_ENGLISH 11
426 #define CAL_GREGORIAN_XLIT_FRENCH 12
427 #define CSTR_LESS_THAN 1
428 #define CSTR_EQUAL 2
429 #define CSTR_GREATER_THAN 3
430 #define LGRPID_INSTALLED 1
431 #define LGRPID_SUPPORTED 2
432 #define LGRPID_WESTERN_EUROPE 1
433 #define LGRPID_CENTRAL_EUROPE 2
434 #define LGRPID_BALTIC 3
435 #define LGRPID_GREEK 4
436 #define LGRPID_CYRILLIC 5
437 #define LGRPID_TURKISH 6
438 #define LGRPID_JAPANESE 7
439 #define LGRPID_KOREAN 8
440 #define LGRPID_TRADITIONAL_CHINESE 9
441 #define LGRPID_SIMPLIFIED_CHINESE 10
442 #define LGRPID_THAI 11
443 #define LGRPID_HEBREW 12
444 #define LGRPID_ARABIC 13
445 #define LGRPID_VIETNAMESE 14
446 #define LGRPID_INDIC 15
447 #define LGRPID_GEORGIAN 16
448 #define LGRPID_ARMENIAN 17
449
450 #if (WINVER >= 0x0500)
451 #define LOCALE_SYEARMONTH 0x1006
452 #define LOCALE_SENGCURRNAME 0x1007
453 #define LOCALE_SNATIVECURRNAME 0x1008
454 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x1012
455 #define LOCALE_SSORTNAME 0x1013
456 #define LOCALE_IDIGITSUBSTITUTION 0x1014
457 #define LOCALE_IPAPERSIZE 0x100A
458 #define DATE_YEARMONTH 8
459 #define DATE_LTRREADING 16
460 #define DATE_RTLREADING 32
461 #define MAP_EXPAND_LIGATURES 0x2000
462 #define CAL_SYEARMONTH 47
463 #define CAL_ITWODIGITYEARMAX 48
464 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
465 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
466 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
467 #endif /* (WINVER >= 0x0500) */
468 #if WINVER >= 0x0600
469 #define IDN_ALLOW_UNASSIGNED 0x1
470 #define IDN_USE_STD3_ASCII_RULES 0x2
471 #define VS_ALLOW_LATIN 0x1
472 #define GSS_ALLOW_INHERITED_COMMON 0x1
473 #endif
474 #ifndef _BASETSD_H
475 typedef long LONG_PTR;
476 #endif
477
478 #ifndef RC_INVOKED
479 typedef DWORD LCTYPE;
480 typedef DWORD CALTYPE;
481 typedef DWORD CALID;
482 typedef DWORD LGRPID;
483 typedef DWORD GEOID;
484 typedef DWORD GEOTYPE;
485 typedef DWORD GEOCLASS;
486 typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR);
487 typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR);
488 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR, CALID);
489 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR, CALID);
490 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCA)(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR);
491 typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR);
492 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID, LCID, LPSTR, LONG_PTR);
493 typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID, LCID, LPWSTR, LONG_PTR);
494 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCW)(LPWSTR, LONG_PTR);
495 typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCA)(LPSTR, LONG_PTR);
496 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
497 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
498 typedef BOOL (CALLBACK *LOCALE_ENUMPROCEX)(LPWSTR, DWORD, LPARAM);
499 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
500 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
501 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
502 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
503 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR, CALID);
504 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR, CALID);
505 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
506 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
507 typedef BOOL (CALLBACK *GEO_ENUMPROC)(GEOID);
508
509 enum NLS_FUNCTION {
510 COMPARE_STRING = 0x0001
511 };
512 typedef enum NLS_FUNCTION NLS_FUNCTION;
513 enum SYSGEOCLASS {
514 GEOCLASS_NATION = 16,
515 GEOCLASS_REGION = 14
516 };
517 enum SYSGEOTYPE {
518 GEO_NATION = 0x0001,
519 GEO_LATITUDE = 0x0002,
520 GEO_LONGITUDE = 0x0003,
521 GEO_ISO2 = 0x0004,
522 GEO_ISO3 = 0x0005,
523 GEO_RFC1766 = 0x0006,
524 GEO_LCID = 0x0007,
525 GEO_FRIENDLYNAME = 0x0008,
526 GEO_OFFICIALNAME = 0x0009,
527 GEO_TIMEZONES = 0x000a,
528 GEO_OFFICIALLANGUAGES = 0x000b
529 };
530
531 typedef struct _cpinfo {
532 UINT MaxCharSize;
533 BYTE DefaultChar[MAX_DEFAULTCHAR];
534 BYTE LeadByte[MAX_LEADBYTES];
535 } CPINFO,*LPCPINFO;
536 typedef struct _cpinfoexA {
537 UINT MaxCharSize;
538 BYTE DefaultChar[MAX_DEFAULTCHAR];
539 BYTE LeadByte[MAX_LEADBYTES];
540 WCHAR UnicodeDefaultChar;
541 UINT CodePage;
542 CHAR CodePageName[MAX_PATH];
543 } CPINFOEXA,*LPCPINFOEXA;
544 typedef struct _cpinfoexW {
545 UINT MaxCharSize;
546 BYTE DefaultChar[MAX_DEFAULTCHAR];
547 BYTE LeadByte[MAX_LEADBYTES];
548 WCHAR UnicodeDefaultChar;
549 UINT CodePage;
550 WCHAR CodePageName[MAX_PATH];
551 } CPINFOEXW,*LPCPINFOEXW;
552 typedef struct _currencyfmtA {
553 UINT NumDigits;
554 UINT LeadingZero;
555 UINT Grouping;
556 LPSTR lpDecimalSep;
557 LPSTR lpThousandSep;
558 UINT NegativeOrder;
559 UINT PositiveOrder;
560 LPSTR lpCurrencySymbol;
561 } CURRENCYFMTA,*LPCURRENCYFMTA;
562 typedef struct _currencyfmtW {
563 UINT NumDigits;
564 UINT LeadingZero;
565 UINT Grouping;
566 LPWSTR lpDecimalSep;
567 LPWSTR lpThousandSep;
568 UINT NegativeOrder;
569 UINT PositiveOrder;
570 LPWSTR lpCurrencySymbol;
571 } CURRENCYFMTW,*LPCURRENCYFMTW;
572 typedef struct nlsversioninfo {
573 DWORD dwNLSVersionInfoSize;
574 DWORD dwNLSVersion;
575 DWORD dwDefinedVersion;
576 } NLSVERSIONINFO,*LPNLSVERSIONINFO;
577 typedef struct _numberfmtA {
578 UINT NumDigits;
579 UINT LeadingZero;
580 UINT Grouping;
581 LPSTR lpDecimalSep;
582 LPSTR lpThousandSep;
583 UINT NegativeOrder;
584 } 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;
593 #if (WINVER >= 0x0600)
594 typedef enum _NORM_FORM {
595 NormalizationOther = 0,
596 NormalizationC = 0x1,
597 NormalizationD = 0x2,
598 NormalizationKC = 0x5,
599 NormalizationKD = 0x6
600 } NORM_FORM;
601 #endif /* (WINVER >= 0x0600) */
602 typedef struct _FILEMUIINFO {
603 DWORD dwSize;
604 DWORD dwVersion;
605 DWORD dwFileType;
606 BYTE pChecksum[16];
607 BYTE pServiceChecksum[16];
608 DWORD dwLanguageNameOffset;
609 DWORD dwTypeIDMainSize;
610 DWORD dwTypeIDMainOffset;
611 DWORD dwTypeNameMainOffset;
612 DWORD dwTypeIDMUISize;
613 DWORD dwTypeIDMUIOffset;
614 DWORD dwTypeNameMUIOffset;
615 BYTE abBuffer[8];
616 } FILEMUIINFO, *PFILEMUIINFO;
617
618 #define HIGH_SURROGATE_START 0xd800
619 #define HIGH_SURROGATE_END 0xdbff
620 #define LOW_SURROGATE_START 0xdc00
621 #define LOW_SURROGATE_END 0xdfff
622
623 #define IS_HIGH_SURROGATE(ch) ((ch) >= HIGH_SURROGATE_START && (ch) <= HIGH_SURROGATE_END)
624 #define IS_LOW_SURROGATE(ch) ((ch) >= LOW_SURROGATE_START && (ch) <= LOW_SURROGATE_END)
625 #define IS_SURROGATE_PAIR(high,low) (IS_HIGH_SURROGATE(high) && IS_LOW_SURROGATE(low))
626
627 int
628 WINAPI
629 CompareStringA(
630 _In_ LCID Locale,
631 _In_ DWORD dwCmpFlags,
632 _In_reads_(cchCount1) LPCSTR lpString1,
633 _In_ int cchCount1,
634 _In_reads_(cchCount2) LPCSTR lpString2,
635 _In_ int cchCount2);
636
637 int
638 WINAPI
639 CompareStringW(
640 _In_ LCID Locale,
641 _In_ DWORD dwCmpFlags,
642 _In_reads_(cchCount1) LPCWSTR lpString1,
643 _In_ int cchCount1,
644 _In_reads_(cchCount2) LPCWSTR lpString2,
645 _In_ int cchCount2);
646
647 LCID WINAPI ConvertDefaultLocale(_In_ LCID);
648 BOOL WINAPI EnumCalendarInfoA(_In_ CALINFO_ENUMPROCA, _In_ LCID, _In_ CALID, _In_ CALTYPE);
649 BOOL WINAPI EnumCalendarInfoW(_In_ CALINFO_ENUMPROCW, _In_ LCID, _In_ CALID, _In_ CALTYPE);
650 BOOL WINAPI EnumDateFormatsA(_In_ DATEFMT_ENUMPROCA, _In_ LCID, _In_ DWORD);
651 BOOL WINAPI EnumDateFormatsW(_In_ DATEFMT_ENUMPROCW, _In_ LCID, _In_ DWORD);
652 BOOL WINAPI EnumSystemCodePagesA(_In_ CODEPAGE_ENUMPROCA, _In_ DWORD);
653 BOOL WINAPI EnumSystemCodePagesW(_In_ CODEPAGE_ENUMPROCW, _In_ DWORD);
654 BOOL WINAPI EnumSystemGeoID(_In_ GEOCLASS, _In_ GEOID, _In_ GEO_ENUMPROC);
655 BOOL WINAPI EnumSystemLocalesA(_In_ LOCALE_ENUMPROCA, _In_ DWORD);
656 BOOL WINAPI EnumSystemLocalesW(_In_ LOCALE_ENUMPROCW, _In_ DWORD);
657 BOOL WINAPI EnumTimeFormatsA(_In_ TIMEFMT_ENUMPROCA, _In_ LCID, _In_ DWORD);
658 BOOL WINAPI EnumTimeFormatsW(_In_ TIMEFMT_ENUMPROCW, _In_ LCID, _In_ DWORD);
659
660 int
661 WINAPI
662 FoldStringA(
663 _In_ DWORD dwMapFlags,
664 _In_reads_(cchSrc) LPCSTR lpSrcStr,
665 _In_ int cchSrc,
666 _Out_writes_opt_(cchDest) LPSTR lpDestStr,
667 _In_ int cchDest);
668
669 int
670 WINAPI
671 FoldStringW(
672 _In_ DWORD dwMapFlags,
673 _In_reads_(cchSrc) LPCWSTR lpSrcStr,
674 _In_ int cchSrc,
675 _Out_writes_opt_(cchDest) LPWSTR lpDestStr,
676 _In_ int cchDest);
677
678 UINT WINAPI GetACP(void);
679
680 int
681 WINAPI
682 GetCalendarInfoA(
683 _In_ LCID Locale,
684 _In_ CALID Calendar,
685 _In_ CALTYPE CalType,
686 _Out_writes_opt_(cchData) LPSTR lpCalData,
687 _In_ int cchData,
688 _Out_opt_ LPDWORD lpValue);
689
690 int
691 WINAPI
692 GetCalendarInfoW(
693 _In_ LCID Locale,
694 _In_ CALID Calendar,
695 _In_ CALTYPE CalType,
696 _Out_writes_opt_(cchData) LPWSTR lpCalData,
697 _In_ int cchData,
698 _Out_opt_ LPDWORD lpValue);
699
700 BOOL WINAPI GetCPInfo(_In_ UINT, _Out_ LPCPINFO);
701 BOOL WINAPI GetCPInfoExA(_In_ UINT, _In_ DWORD, _Out_ LPCPINFOEXA);
702 BOOL WINAPI GetCPInfoExW(_In_ UINT, _In_ DWORD, _Out_ LPCPINFOEXW);
703
704 int
705 WINAPI
706 GetCurrencyFormatA(
707 _In_ LCID Locale,
708 _In_ DWORD dwFlags,
709 _In_ LPCSTR lpValue,
710 _In_opt_ const CURRENCYFMTA *lpFormat,
711 _Out_writes_opt_(cchCurrency) LPSTR lpCurrencyStr,
712 _In_ int cchCurrency);
713
714 int
715 WINAPI
716 GetCurrencyFormatW(
717 _In_ LCID Locale,
718 _In_ DWORD dwFlags,
719 _In_ LPCWSTR lpValue,
720 _In_opt_ const CURRENCYFMTW *lpFormat,
721 _Out_writes_opt_(cchCurrency) LPWSTR lpCurrencyStr,
722 _In_ int cchCurrency);
723
724 int WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,int);
725 int WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,int);
726
727 int
728 WINAPI
729 GetGeoInfoA(
730 _In_ GEOID Location,
731 _In_ GEOTYPE GeoType,
732 _Out_writes_opt_(cchData) LPSTR lpGeoData,
733 _In_ int cchData,
734 _In_ LANGID LangId);
735
736 int
737 WINAPI
738 GetGeoInfoW(
739 _In_ GEOID Location,
740 _In_ GEOTYPE GeoType,
741 _Out_writes_opt_(cchData) LPWSTR lpGeoData,
742 _In_ int cchData,
743 _In_ LANGID LangId);
744
745 int
746 WINAPI
747 GetLocaleInfoA(
748 _In_ LCID Locale,
749 _In_ LCTYPE LCType,
750 _Out_writes_opt_(cchData) LPSTR lpLCData,
751 _In_ int cchData);
752
753 int
754 WINAPI
755 GetLocaleInfoW(
756 _In_ LCID Locale,
757 _In_ LCTYPE LCType,
758 _Out_writes_opt_(cchData) LPWSTR lpLCData,
759 _In_ int cchData);
760
761 BOOL WINAPI GetNLSVersion(_In_ NLS_FUNCTION, _In_ LCID, _Inout_ LPNLSVERSIONINFO);
762
763 int
764 WINAPI
765 GetNumberFormatA(
766 _In_ LCID Locale,
767 _In_ DWORD dwFlags,
768 _In_ LPCSTR lpValue,
769 _In_opt_ const NUMBERFMTA *lpFormat,
770 _Out_writes_opt_(cchNumber) LPSTR lpNumberStr,
771 _In_ int cchNumber);
772
773 int
774 WINAPI
775 GetNumberFormatW(
776 _In_ LCID Locale,
777 _In_ DWORD dwFlags,
778 _In_ LPCWSTR lpValue,
779 _In_opt_ const NUMBERFMTW *lpFormat,
780 _Out_writes_opt_(cchNumber) LPWSTR lpNumberStr,
781 _In_ int cchNumber);
782
783 UINT WINAPI GetOEMCP(void);
784
785 BOOL
786 WINAPI
787 GetStringTypeA(
788 _In_ LCID Locale,
789 _In_ DWORD dwInfoType,
790 _In_reads_(cchSrc) LPCSTR lpSrcStr,
791 _In_ int cchSrc,
792 _Out_ LPWORD lpCharType);
793
794 BOOL
795 WINAPI
796 GetStringTypeW(
797 _In_ DWORD dwInfoType,
798 _In_reads_(cchSrc) LPCWSTR lpSrcStr,
799 _In_ int cchSrc,
800 _Out_ LPWORD lpCharType);
801
802 BOOL
803 WINAPI
804 GetStringTypeExA(
805 _In_ LCID Locale,
806 _In_ DWORD dwInfoType,
807 _In_reads_(cchSrc) LPCSTR lpSrcStr,
808 _In_ int cchSrc,
809 _Out_writes_(cchSrc) LPWORD lpCharType);
810
811 BOOL
812 WINAPI
813 GetStringTypeExW(
814 _In_ LCID Locale,
815 _In_ DWORD dwInfoType,
816 _In_reads_(cchSrc) LPCWSTR lpSrcStr,
817 _In_ int cchSrc,
818 _Out_writes_(cchSrc) LPWORD lpCharType);
819
820 LANGID WINAPI GetSystemDefaultLangID(void);
821 LCID WINAPI GetSystemDefaultLCID(void);
822 LCID WINAPI GetThreadLocale(void);
823 int WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,int);
824 int WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,int);
825 LANGID WINAPI GetUserDefaultLangID(void);
826 LCID WINAPI GetUserDefaultLCID(void);
827 GEOID WINAPI GetUserGeoID(_In_ GEOCLASS);
828 BOOL WINAPI IsDBCSLeadByte(_In_ BYTE);
829 BOOL WINAPI IsDBCSLeadByteEx(_In_ UINT, _In_ BYTE);
830
831 BOOL
832 WINAPI
833 IsNLSDefinedString(
834 _In_ NLS_FUNCTION Function,
835 _In_ DWORD dwFlags,
836 _In_ LPNLSVERSIONINFO lpVersionInformation,
837 _In_reads_(cchStr) LPCWSTR lpString,
838 _In_ int cchStr);
839
840 BOOL WINAPI IsValidCodePage(_In_ UINT);
841 BOOL WINAPI IsValidLocale(_In_ LCID, _In_ DWORD);
842
843 int
844 WINAPI
845 LCMapStringA(
846 _In_ LCID Locale,
847 _In_ DWORD dwMapFlags,
848 _In_reads_(cchSrc) LPCSTR lpSrcStr,
849 _In_ int cchSrc,
850 _Out_writes_opt_(_Inexpressible_(cchDest)) LPSTR lpDestStr,
851 _In_ int cchDest);
852
853 int
854 WINAPI
855 LCMapStringW(
856 _In_ LCID Locale,
857 _In_ DWORD dwMapFlags,
858 _In_reads_(cchSrc) LPCWSTR lpSrcStr,
859 _In_ int cchSrc,
860 _Out_writes_opt_(_Inexpressible_(cchDest)) LPWSTR lpDestStr,
861 _In_ int cchDest);
862
863 int WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,int,LPWSTR,int);
864 int WINAPI SetCalendarInfoA(_In_ LCID, _In_ CALID, _In_ CALTYPE, _In_ LPCSTR);
865 int WINAPI SetCalendarInfoW(_In_ LCID, _In_ CALID, _In_ CALTYPE, _In_ LPCWSTR);
866 BOOL WINAPI SetLocaleInfoA(_In_ LCID, _In_ LCTYPE, _In_ LPCSTR);
867 BOOL WINAPI SetLocaleInfoW(_In_ LCID, _In_ LCTYPE, _In_ LPCWSTR);
868 BOOL WINAPI SetThreadLocale(_In_ LCID);
869 LANGID WINAPI SetThreadUILanguage(_In_ LANGID);
870 BOOL WINAPI SetUserDefaultLCID(LCID);
871 BOOL WINAPI SetUserDefaultUILanguage(LANGID);
872 BOOL WINAPI SetUserGeoID(_In_ GEOID);
873 int WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,int,LPSTR,int,LPCSTR,LPBOOL);
874 #if (WINVER >= 0x0500)
875 BOOL WINAPI EnumCalendarInfoExA(_In_ CALINFO_ENUMPROCEXA, _In_ LCID, _In_ CALID, _In_ CALTYPE);
876 BOOL WINAPI EnumCalendarInfoExW(_In_ CALINFO_ENUMPROCEXW, _In_ LCID, _In_ CALID, _In_ CALTYPE);
877 BOOL WINAPI EnumDateFormatsExA(_In_ DATEFMT_ENUMPROCEXA, _In_ LCID, _In_ DWORD);
878 BOOL WINAPI EnumDateFormatsExW(_In_ DATEFMT_ENUMPROCEXW, _In_ LCID, _In_ DWORD);
879 BOOL WINAPI EnumSystemLanguageGroupsA(_In_ LANGUAGEGROUP_ENUMPROCA, _In_ DWORD, _In_ LONG_PTR);
880 BOOL WINAPI EnumSystemLanguageGroupsW(_In_ LANGUAGEGROUP_ENUMPROCW, _In_ DWORD, _In_ LONG_PTR);
881 BOOL WINAPI EnumLanguageGroupLocalesA(_In_ LANGGROUPLOCALE_ENUMPROCA, _In_ LGRPID, _In_ DWORD, _In_ LONG_PTR);
882 BOOL WINAPI EnumLanguageGroupLocalesW(_In_ LANGGROUPLOCALE_ENUMPROCW, _In_ LGRPID, _In_ DWORD, _In_ LONG_PTR);
883 BOOL WINAPI EnumUILanguagesA(_In_ UILANGUAGE_ENUMPROCA, _In_ DWORD, _In_ LONG_PTR);
884 BOOL WINAPI EnumUILanguagesW(_In_ UILANGUAGE_ENUMPROCW, _In_ DWORD, _In_ LONG_PTR);
885 LANGID WINAPI GetSystemDefaultUILanguage(void);
886 LANGID WINAPI GetUserDefaultUILanguage(void);
887 BOOL WINAPI IsValidLanguageGroup(_In_ LGRPID, _In_ DWORD);
888 #endif /* (WINVER >= 0x0500) */
889
890 #if (WINVER >= 0x0600)
891
892 _Success_(return != FALSE)
893 BOOL
894 WINAPI
895 GetFileMUIInfo(
896 _In_ DWORD dwFlags,
897 _In_ PCWSTR pcwszFilePath,
898 _Inout_updates_bytes_to_opt_(*pcbFileMUIInfo, *pcbFileMUIInfo) PFILEMUIINFO pFileMUIInfo,
899 _Inout_ DWORD *pcbFileMUIInfo);
900
901 BOOL
902 WINAPI
903 GetFileMUIPath(
904 _In_ DWORD dwFlags,
905 _In_ PCWSTR pcwszFilePath,
906 _Inout_updates_opt_(*pcchLanguage) PWSTR pwszLanguage,
907 _Inout_ PULONG pcchLanguage,
908 _Out_writes_opt_(*pcchFileMUIPath) PWSTR pwszFileMUIPath,
909 _Inout_ PULONG pcchFileMUIPath,
910 _Inout_ PULONGLONG pululEnumerator);
911
912 WINBASEAPI
913 int
914 WINAPI
915 GetLocaleInfoEx(
916 _In_opt_ LPCWSTR lpLocaleName,
917 _In_ LCTYPE LCType,
918 _Out_writes_opt_(cchData) LPWSTR lpLCData,
919 _In_ int cchData);
920
921 BOOL
922 WINAPI
923 GetProcessPreferredUILanguages(
924 _In_ DWORD dwFlags,
925 _Out_ PULONG pulNumLanguages,
926 _Out_writes_opt_(*pcchLanguagesBuffer) PZZWSTR pwszLanguagesBuffer,
927 _Inout_ PULONG pcchLanguagesBuffer);
928
929 BOOL
930 WINAPI
931 GetSystemPreferredUILanguages(
932 _In_ DWORD dwFlags,
933 _Out_ PULONG pulNumLanguages,
934 _Out_writes_opt_(*pcchLanguagesBuffer) PZZWSTR pwszLanguagesBuffer,
935 _Inout_ PULONG pcchLanguagesBuffer);
936
937 BOOL
938 WINAPI
939 GetThreadPreferredUILanguages(
940 _In_ DWORD dwFlags,
941 _Out_ PULONG pulNumLanguages,
942 _Out_writes_opt_(*pcchLanguagesBuffer) PZZWSTR pwszLanguagesBuffer,
943 _Inout_ PULONG pcchLanguagesBuffer);
944
945 LANGID WINAPI GetThreadUILanguage(void);
946
947 BOOL
948 WINAPI
949 GetUILanguageInfo(
950 _In_ DWORD dwFlags,
951 _In_ PCZZWSTR pwmszLanguage,
952 _Out_writes_opt_(*pcchFallbackLanguages) PZZWSTR pwszFallbackLanguages,
953 _Inout_opt_ PDWORD pcchFallbackLanguages,
954 _Out_ PDWORD pAttributes);
955
956 BOOL
957 WINAPI
958 GetUserPreferredUILanguages(
959 _In_ DWORD dwFlags,
960 _Out_ PULONG pulNumLanguages,
961 _Out_writes_opt_(*pcchLanguagesBuffer) PZZWSTR pwszLanguagesBuffer,
962 _Inout_ PULONG pcchLanguagesBuffer);
963
964 int
965 WINAPI
966 IdnToAscii(
967 _In_ DWORD dwFlags,
968 _In_reads_(cchUnicodeChar) LPCWSTR lpUnicodeCharStr,
969 _In_ int cchUnicodeChar,
970 _Out_writes_opt_(cchASCIIChar) LPWSTR lpASCIICharStr,
971 _In_ int cchASCIIChar);
972
973 int
974 WINAPI
975 IdnToNameprepUnicode(
976 _In_ DWORD dwFlags,
977 _In_reads_(cchUnicodeChar) LPCWSTR lpUnicodeCharStr,
978 _In_ int cchUnicodeChar,
979 _Out_writes_opt_(cchNameprepChar) LPWSTR lpNameprepCharStr,
980 _In_ int cchNameprepChar);
981
982 int
983 WINAPI
984 IdnToUnicode(
985 _In_ DWORD dwFlags,
986 _In_reads_(cchASCIIChar) LPCWSTR lpASCIICharStr,
987 _In_ int cchASCIIChar,
988 _Out_writes_opt_(cchUnicodeChar) LPWSTR lpUnicodeCharStr,
989 _In_ int cchUnicodeChar);
990
991 BOOL
992 WINAPI
993 IsNormalizedString(
994 _In_ NORM_FORM NormForm,
995 _In_reads_(cwLength) LPCWSTR lpString,
996 _In_ int cwLength);
997
998 int
999 WINAPI
1000 NormalizeString(
1001 _In_ NORM_FORM NormForm,
1002 _In_reads_(cwSrcLength) LPCWSTR lpSrcString,
1003 _In_ int cwSrcLength,
1004 _Out_writes_opt_(cwDstLength) LPWSTR lpDstString,
1005 _In_ int cwDstLength);
1006
1007 int
1008 WINAPI
1009 GetStringScripts(
1010 _In_ DWORD dwFlags,
1011 _In_ LPCWSTR lpString,
1012 _In_ int cchString,
1013 _Out_writes_opt_(cchScripts) LPWSTR lpScripts,
1014 _In_ int cchScripts);
1015
1016 BOOL WINAPI SetProcessPreferredUILanguages(_In_ DWORD, _In_opt_ PCZZWSTR, _Out_opt_ PULONG);
1017 BOOL WINAPI SetThreadPreferredUILanguages(_In_ DWORD, _In_opt_ PCZZWSTR, _Out_opt_ PULONG);
1018 BOOL WINAPI VerifyScripts(_In_ DWORD, _In_ LPCWSTR, _In_ int, _In_ LPCWSTR, _In_ int);
1019
1020 #endif /* (WINVER >= 0x0600) */
1021
1022 #ifdef UNICODE
1023 #define CALINFO_ENUMPROC CALINFO_ENUMPROCW
1024 #define CALINFO_ENUMPROCEX CALINFO_ENUMPROCEXW
1025 #define LOCALE_ENUMPROC LOCALE_ENUMPROCW
1026 #define CODEPAGE_ENUMPROC CODEPAGE_ENUMPROCW
1027 #define DATEFMT_ENUMPROC DATEFMT_ENUMPROCW
1028 #define DATEFMT_ENUMPROCEX DATEFMT_ENUMPROCEXW
1029 #define TIMEFMT_ENUMPROC TIMEFMT_ENUMPROCW
1030 #define LANGUAGEGROUP_ENUMPROC LANGUAGEGROUP_ENUMPROCW
1031 #define LANGGROUPLOCALE_ENUMPROC LANGGROUPLOCALE_ENUMPROCW
1032 #define UILANGUAGE_ENUMPROC UILANGUAGE_ENUMPROCW
1033 typedef CPINFOEXW CPINFOEX;
1034 typedef LPCPINFOEXW LPCPINFOEX;
1035 typedef CURRENCYFMTW CURRENCYFMT;
1036 typedef LPCURRENCYFMTW LPCURRENCYFMT;
1037 typedef NUMBERFMTW NUMBERFMT;
1038 typedef LPNUMBERFMTW LPNUMBERFMT;
1039 #define CompareString CompareStringW
1040 #define EnumCalendarInfo EnumCalendarInfoW
1041 #define EnumDateFormats EnumDateFormatsW
1042 #define EnumSystemCodePages EnumSystemCodePagesW
1043 #define EnumSystemLocales EnumSystemLocalesW
1044 #define EnumTimeFormats EnumTimeFormatsW
1045 #define FoldString FoldStringW
1046 #define GetCalendarInfo GetCalendarInfoW
1047 #define GetCPInfoEx GetCPInfoExW
1048 #define GetCurrencyFormat GetCurrencyFormatW
1049 #define GetDateFormat GetDateFormatW
1050 #define GetGeoInfo GetGeoInfoW
1051 #define GetLocaleInfo GetLocaleInfoW
1052 #define GetNumberFormat GetNumberFormatW
1053 #define GetStringTypeEx GetStringTypeExW
1054 #define GetTimeFormat GetTimeFormatW
1055 #define LCMapString LCMapStringW
1056 #define SetCalendarInfo SetCalendarInfoW
1057 #define SetLocaleInfo SetLocaleInfoW
1058 #if (WINVER >= 0x0500)
1059 #define EnumCalendarInfoEx EnumCalendarInfoExW
1060 #define EnumDateFormatsEx EnumDateFormatsExW
1061 #define EnumSystemLanguageGroups EnumSystemLanguageGroupsW
1062 #define EnumLanguageGroupLocales EnumLanguageGroupLocalesW
1063 #define EnumUILanguages EnumUILanguagesW
1064 #endif /* (WINVER >= 0x0500) */
1065 #else
1066 #define CALINFO_ENUMPROC CALINFO_ENUMPROCA
1067 #define CALINFO_ENUMPROCEX CALINFO_ENUMPROCEXA
1068 #define LOCALE_ENUMPROC LOCALE_ENUMPROCA
1069 #define CODEPAGE_ENUMPROC CODEPAGE_ENUMPROCA
1070 #define DATEFMT_ENUMPROC DATEFMT_ENUMPROCA
1071 #define DATEFMT_ENUMPROCEX DATEFMT_ENUMPROCEXA
1072 #define TIMEFMT_ENUMPROC TIMEFMT_ENUMPROCA
1073 #define LANGUAGEGROUP_ENUMPROC LANGUAGEGROUP_ENUMPROCA
1074 #define LANGGROUPLOCALE_ENUMPROC LANGGROUPLOCALE_ENUMPROCA
1075 #define UILANGUAGE_ENUMPROC UILANGUAGE_ENUMPROCA
1076 typedef CPINFOEXA CPINFOEX;
1077 typedef LPCPINFOEXA LPCPINFOEX;
1078 typedef CURRENCYFMTA CURRENCYFMT;
1079 typedef LPCURRENCYFMTA LPCURRENCYFMT;
1080 typedef NUMBERFMTA NUMBERFMT;
1081 typedef LPNUMBERFMTA LPNUMBERFMT;
1082 #define CompareString CompareStringA
1083 #define EnumCalendarInfo EnumCalendarInfoA
1084 #define EnumDateFormats EnumDateFormatsA
1085 #define EnumSystemCodePages EnumSystemCodePagesA
1086 #define EnumSystemLocales EnumSystemLocalesA
1087 #define EnumTimeFormats EnumTimeFormatsA
1088 #define FoldString FoldStringA
1089 #define GetCalendarInfo GetCalendarInfoA
1090 #define GetCPInfoEx GetCPInfoExA
1091 #define GetCurrencyFormat GetCurrencyFormatA
1092 #define GetDateFormat GetDateFormatA
1093 #define GetGeoInfo GetGeoInfoA
1094 #define GetLocaleInfo GetLocaleInfoA
1095 #define GetNumberFormat GetNumberFormatA
1096 #define GetStringTypeEx GetStringTypeExA
1097 #define GetTimeFormat GetTimeFormatA
1098 #define LCMapString LCMapStringA
1099 #define SetCalendarInfo SetCalendarInfoA
1100 #define SetLocaleInfo SetLocaleInfoA
1101 #if (WINVER >= 0x0500)
1102 #define EnumCalendarInfoEx EnumCalendarInfoExA
1103 #define EnumDateFormatsEx EnumDateFormatsExA
1104 #define EnumSystemLanguageGroups EnumSystemLanguageGroupsA
1105 #define EnumLanguageGroupLocales EnumLanguageGroupLocalesA
1106 #define EnumUILanguages EnumUILanguagesA
1107 #endif /* (WINVER >= 0x0500) */
1108 #endif /* UNICODE */
1109 #endif /* RC_INVOKED */
1110
1111 #ifdef _MSC_VER
1112 #pragma warning(pop)
1113 #endif
1114
1115 #ifdef __cplusplus
1116 }
1117 #endif
1118 #endif