source: trunk/ab5.0/ablib/src/winnls.ab@ 711

Last change on this file since 711 was 628, checked in by イグトランス (egtra), 16 years ago

winnls.ab, winsvc.abを追加

File size: 39.2 KB
Line 
1'winnls.ab
2
3#ifdef UNICODE
4Const _FuncName_GetCPInfoEx = "GetCPInfoExW"
5Const _FuncName_CompareString = "CompareStringW"
6Const _FuncName_LCMapString = "LCMapStringW"
7Const _FuncName_GetLocaleInfo = "GetLocaleInfoW"
8Const _FuncName_SetLocaleInfo = "SetLocaleInfoW"
9Const _FuncName_GetCalendarInfo = "GetCalendarInfoW"
10Const _FuncName_SetCalendarInfo = "SetCalendarInfoW"
11Const _FuncName_GetTimeFormat = "GetTimeFormatW"
12Const _FuncName_GetDateFormat = "GetDateFormatW"
13Const _FuncName_GetNumberFormat = "GetNumberFormatW"
14Const _FuncName_GetCurrencyFormat = "GetCurrencyFormatW"
15Const _FuncName_EnumCalendarInfo = "EnumCalendarInfoW"
16Const _FuncName_EnumTimeFormats = "EnumTimeFormatsW"
17Const _FuncName_EnumDateFormats = "EnumDateFormatsW"
18Const _FuncName_GetGeoInfo = "GetGeoInfoW"
19Const _FuncName_GetStringTypeEx = "GetStringTypeExW"
20Const _FuncName_FoldString = "FoldStringW"
21Const _FuncName_EnumSystemLocales = "EnumSystemLocalesW"
22Const _FuncName_EnumSystemCodePages = "EnumSystemCodePagesW"
23#else
24Const _FuncName_GetCPInfoEx = "GetCPInfoExA"
25Const _FuncName_CompareString = "CompareStringA"
26Const _FuncName_LCMapString = "LCMapStringA"
27Const _FuncName_GetLocaleInfo = "GetLocaleInfoA"
28Const _FuncName_SetLocaleInfo = "SetLocaleInfoA"
29Const _FuncName_GetCalendarInfo = "GetCalendarInfoA"
30Const _FuncName_SetCalendarInfo = "SetCalendarInfoA"
31Const _FuncName_GetTimeFormat = "GetTimeFormatA"
32Const _FuncName_GetDateFormat = "GetDateFormatA"
33Const _FuncName_GetNumberFormat = "GetNumberFormatA"
34Const _FuncName_GetCurrencyFormat = "GetCurrencyFormatA"
35Const _FuncName_EnumCalendarInfo = "EnumCalendarInfoA"
36Const _FuncName_EnumTimeFormats = "EnumTimeFormatsA"
37Const _FuncName_EnumDateFormats = "EnumDateFormatsA"
38Const _FuncName_GetGeoInfo = "GetGeoInfoA"
39Const _FuncName_GetStringTypeEx = "GetStringTypeExA"
40Const _FuncName_FoldString = "FoldStringA"
41Const _FuncName_EnumSystemLocales = "EnumSystemLocalesA"
42Const _FuncName_EnumSystemCodePages = "EnumSystemCodePagesA"
43#endif
44
45Const MAX_LEADBYTES = 12
46Const MAX_DEFAULTCHAR = 2
47
48Const HIGH_SURROGATE_START = &hd800
49Const HIGH_SURROGATE_END = &hdbff
50Const LOW_SURROGATE_START = &hdc00
51Const LOW_SURROGATE_END = &hdfff
52
53Const MB_PRECOMPOSED = &h00000001
54Const MB_COMPOSITE = &h00000002
55Const MB_USEGLYPHCHARS = &h00000004
56Const MB_ERR_INVALID_CHARS = &h00000008
57
58Const WC_COMPOSITECHECK = &h00000200
59Const WC_DISCARDNS = &h00000010
60Const WC_SEPCHARS = &h00000020
61Const WC_DEFAULTCHAR = &h00000040
62'if WINVER >= &h0600
63Const WC_ERR_INVALID_CHARS = &h00000080
64'#endif
65
66'if WINVER >= &h0500
67Const WC_NO_BEST_FIT_CHARS = &h00000400
68'#endif
69
70Const CT_CTYPE1 = &h00000001
71Const CT_CTYPE2 = &h00000002
72Const CT_CTYPE3 = &h00000004
73
74Const C1_UPPER = &h0001
75Const C1_LOWER = &h0002
76Const C1_DIGIT = &h0004
77Const C1_SPACE = &h0008
78Const C1_PUNCT = &h0010
79Const C1_CNTRL = &h0020
80Const C1_BLANK = &h0040
81Const C1_XDIGIT = &h0080
82Const C1_ALPHA = &h0100
83Const C1_DEFINED = &h0200
84
85Const C2_LEFTTORIGHT = &h0001
86Const C2_RIGHTTOLEFT = &h0002
87Const C2_EUROPENUMBER = &h0003
88Const C2_EUROPESEPARATOR = &h0004
89Const C2_EUROPETERMINATOR = &h0005
90Const C2_ARABICNUMBER = &h0006
91Const C2_COMMONSEPARATOR = &h0007
92Const C2_BLOCKSEPARATOR = &h0008
93Const C2_SEGMENTSEPARATOR = &h0009
94Const C2_WHITESPACE = &h000A
95Const C2_OTHERNEUTRAL = &h000B
96Const C2_NOTAPPLICABLE = &h0000
97
98Const C3_NONSPACING = &h0001
99Const C3_DIACRITIC = &h0002
100Const C3_VOWELMARK = &h0004
101Const C3_SYMBOL = &h0008
102Const C3_KATAKANA = &h0010
103Const C3_HIRAGANA = &h0020
104Const C3_HALFWIDTH = &h0040
105Const C3_FULLWIDTH = &h0080
106Const C3_IDEOGRAPH = &h0100
107Const C3_KASHIDA = &h0200
108Const C3_LEXICAL = &h0400
109Const C3_HIGHSURROGATE = &h0800
110Const C3_LOWSURROGATE = &h1000
111Const C3_ALPHA = &h8000
112Const C3_NOTAPPLICABLE = &h0000
113
114
115Const NORM_IGNORECASE = &h00000001
116Const NORM_IGNORENONSPACE = &h00000002
117Const NORM_IGNORESYMBOLS = &h00000004
118
119Const LINGUISTIC_IGNORECASE = &h00000010
120Const LINGUISTIC_IGNOREDIACRITIC = &h00000020
121
122Const NORM_IGNOREKANATYPE = &h00010000
123Const NORM_IGNOREWIDTH = &h00020000
124Const NORM_LINGUISTIC_CASING = &h08000000
125
126Const MAP_FOLDCZONE = &h00000010
127Const MAP_PRECOMPOSED = &h00000020
128Const MAP_COMPOSITE = &h00000040
129Const MAP_FOLDDIGITS = &h00000080
130
131'if WINVER >= &h0500
132Const MAP_EXPAND_LIGATURES = &h00002000
133'#endif
134
135Const LCMAP_LOWERCASE = &h00000100
136Const LCMAP_UPPERCASE = &h00000200
137Const LCMAP_SORTKEY = &h00000400
138Const LCMAP_ByteREV = &h00000800
139Const LCMAP_HIRAGANA = &h00100000
140Const LCMAP_KATAKANA = &h00200000
141Const LCMAP_HALFWIDTH = &h00400000
142Const LCMAP_FULLWIDTH = &h00800000
143Const LCMAP_LINGUISTIC_CASING = &h01000000
144Const LCMAP_SIMPLIFIED_CHINESE = &h02000000
145Const LCMAP_TRADITIONAL_CHINESE = &h04000000
146
147Const FIND_STARTSWITH = &h00100000
148Const FIND_ENDSWITH = &h00200000
149Const FIND_FROMSTART = &h00400000
150Const FIND_FROMEND = &h00800000
151
152Const LGRPID_INSTALLED = &h00000001
153Const LGRPID_SUPPORTED = &h00000002
154
155Const LCID_INSTALLED = &h00000001
156Const LCID_SUPPORTED = &h00000002
157Const LCID_ALTERNATE_SORTS = &h00000004
158
159'if WINVER >= &h0600
160Const LOCALE_ALL = 0
161Const LOCALE_WINDOWS = &h00000001
162Const LOCALE_SUPPLEMENTAL = &h00000002
163Const LOCALE_ALTERNATE_SORTS = &h00000004
164Const LOCALE_REPLACEMENT = &h00000008
165'#endif
166
167Const CP_INSTALLED = &h00000001
168Const CP_SUPPORTED = &h00000002
169
170Const SORT_STRINGSORT = &h00001000
171
172Const CSTR_LESS_THAN = 1
173Const CSTR_EQUAL = 2
174Const CSTR_GREATER_THAN = 3
175
176Const CP_ACP = 0
177Const CP_OEMCP = 1
178Const CP_MACCP = 2
179Const CP_THREAD_ACP = 3
180Const CP_SYMBOL = 42
181
182Const CP_UTF7 = 65000
183Const CP_UTF8 = 65001
184
185Const CTRY_DEFAULT = 0
186
187Const CTRY_ALBANIA = 355
188Const CTRY_ALGERIA = 213
189Const CTRY_ARGENTINA = 54
190Const CTRY_ARMENIA = 374
191Const CTRY_AUSTRALIA = 61
192Const CTRY_AUSTRIA = 43
193Const CTRY_AZERBAIJAN = 994
194Const CTRY_BAHRAIN = 973
195Const CTRY_BELARUS = 375
196Const CTRY_BELGIUM = 32
197Const CTRY_BELIZE = 501
198Const CTRY_BOLIVIA = 591
199Const CTRY_BRAZIL = 55
200Const CTRY_BRUNEI_DARUSSALAM = 673
201Const CTRY_BULGARIA = 359
202Const CTRY_CANADA = 2
203Const CTRY_CARIBBEAN = 1
204Const CTRY_CHILE = 56
205Const CTRY_COLOMBIA = 57
206Const CTRY_COSTA_RICA = 506
207Const CTRY_CROATIA = 385
208Const CTRY_CZECH = 420
209Const CTRY_DENMARK = 45
210Const CTRY_DOMINICAN_REPUBLIC = 1
211Const CTRY_ECUADOR = 593
212Const CTRY_EGYPT = 20
213Const CTRY_EL_SALVADOR = 503
214Const CTRY_ESTONIA = 372
215Const CTRY_FAEROE_ISLANDS = 298
216Const CTRY_FINLAND = 358
217Const CTRY_FRANCE = 33
218Const CTRY_GEORGIA = 995
219Const CTRY_GERMANY = 49
220Const CTRY_GREECE = 30
221Const CTRY_GUATEMALA = 502
222Const CTRY_HONDURAS = 504
223Const CTRY_HONG_KONG = 852
224Const CTRY_HUNGARY = 36
225Const CTRY_ICELAND = 354
226Const CTRY_INDIA = 91
227Const CTRY_INDONESIA = 62
228Const CTRY_IRAN = 981
229Const CTRY_IRAQ = 964
230Const CTRY_IRELAND = 353
231Const CTRY_ISRAEL = 972
232Const CTRY_ITALY = 39
233Const CTRY_JAMAICA = 1
234Const CTRY_JAPAN = 81
235Const CTRY_JORDAN = 962
236Const CTRY_KAZAKSTAN = 7
237Const CTRY_KENYA = 254
238Const CTRY_KUWAIT = 965
239Const CTRY_KYRGYZSTAN = 996
240Const CTRY_LATVIA = 371
241Const CTRY_LEBANON = 961
242Const CTRY_LIBYA = 218
243Const CTRY_LIECHTENSTEIN = 41
244Const CTRY_LITHUANIA = 370
245Const CTRY_LUXEMBOURG = 352
246Const CTRY_MACAU = 853
247Const CTRY_MACEDONIA = 389
248Const CTRY_MALAYSIA = 60
249Const CTRY_MALDIVES = 960
250Const CTRY_MEXICO = 52
251Const CTRY_MONACO = 33
252Const CTRY_MONGOLIA = 976
253Const CTRY_MOROCCO = 212
254Const CTRY_NETHERLANDS = 31
255Const CTRY_NEW_ZEALAND = 64
256Const CTRY_NICARAGUA = 505
257Const CTRY_NORWAY = 47
258Const CTRY_OMAN = 968
259Const CTRY_PAKISTAN = 92
260Const CTRY_PANAMA = 507
261Const CTRY_PARAGUAY = 595
262Const CTRY_PERU = 51
263Const CTRY_PHILIPPINES = 63
264Const CTRY_POLAND = 48
265Const CTRY_PORTUGAL = 351
266Const CTRY_PRCHINA = 86
267Const CTRY_PUERTO_RICO = 1
268Const CTRY_QATAR = 974
269Const CTRY_ROMANIA = 40
270Const CTRY_RUSSIA = 7
271Const CTRY_SAUDI_ARABIA = 966
272Const CTRY_SERBIA = 381
273Const CTRY_SINGAPORE = 65
274Const CTRY_SLOVAK = 421
275Const CTRY_SLOVENIA = 386
276Const CTRY_SOUTH_AFRICA = 27
277Const CTRY_SOUTH_KOREA = 82
278Const CTRY_SPAIN = 34
279Const CTRY_SWEDEN = 46
280Const CTRY_SWITZERLAND = 41
281Const CTRY_SYRIA = 963
282Const CTRY_TAIWAN = 886
283Const CTRY_TATARSTAN = 7
284Const CTRY_THAILAND = 66
285Const CTRY_TRINIDAD_Y_TOBAGO = 1
286Const CTRY_TUNISIA = 216
287Const CTRY_TURKEY = 90
288Const CTRY_UAE = 971
289Const CTRY_UKRAINE = 380
290Const CTRY_UNITED_KINGDOM = 44
291Const CTRY_UNITED_STATES = 1
292Const CTRY_URUGUAY = 598
293Const CTRY_UZBEKISTAN = 7
294Const CTRY_VENEZUELA = 58
295Const CTRY_VIET_NAM = 84
296Const CTRY_YEMEN = 967
297Const CTRY_ZIMBABWE = 263
298
299Const LOCALE_NOUSEROVERRIDE = &h80000000
300Const LOCALE_USE_CP_ACP = &h40000000
301
302'if WINVER >= &h0400
303Const LOCALE_RETURN_NUMBER = &h20000000
304'#endif
305
306Const LOCALE_ILANGUAGE = &h00000001
307Const LOCALE_SLANGUAGE = &h00000002
308Const LOCALE_SENGLANGUAGE = &h00001001
309Const LOCALE_SABBREVLANGNAME = &h00000003
310Const LOCALE_SNATIVELANGNAME = &h00000004
311
312Const LOCALE_ICOUNTRY = &h00000005
313Const LOCALE_SCOUNTRY = &h00000006
314Const LOCALE_SENGCOUNTRY = &h00001002
315Const LOCALE_SABBREVCTRYNAME = &h00000007
316Const LOCALE_SNATIVECTRYNAME = &h00000008
317Const LOCALE_IGEOID = &h0000005B
318
319Const LOCALE_IDEFAULTLANGUAGE = &h00000009
320Const LOCALE_IDEFAULTCOUNTRY = &h0000000A
321Const LOCALE_IDEFAULTCODEPAGE = &h0000000B
322Const LOCALE_IDEFAULTANSICODEPAGE = &h00001004
323Const LOCALE_IDEFAULTMACCODEPAGE = &h00001011
324
325Const LOCALE_SLIST = &h0000000C
326Const LOCALE_IMEASURE = &h0000000D
327
328Const LOCALE_SDECIMAL = &h0000000E
329Const LOCALE_STHOUSAND = &h0000000F
330Const LOCALE_SGROUPING = &h00000010
331Const LOCALE_IDIGITS = &h00000011
332Const LOCALE_ILZERO = &h00000012
333Const LOCALE_INEGNUMBER = &h00001010
334Const LOCALE_SNATIVEDIGITS = &h00000013
335
336Const LOCALE_SCURRENCY = &h00000014
337Const LOCALE_SINTLSYMBOL = &h00000015
338Const LOCALE_SMONDECIMALSEP = &h00000016
339Const LOCALE_SMONTHOUSANDSEP = &h00000017
340Const LOCALE_SMONGROUPING = &h00000018
341Const LOCALE_ICURRDIGITS = &h00000019
342Const LOCALE_IINTLCURRDIGITS = &h0000001A
343Const LOCALE_ICURRENCY = &h0000001B
344Const LOCALE_INEGCURR = &h0000001C
345
346Const LOCALE_SDATE = &h0000001D
347Const LOCALE_STIME = &h0000001E
348Const LOCALE_SSHORTDATE = &h0000001F
349Const LOCALE_SLONGDATE = &h00000020
350Const LOCALE_STIMEFORMAT = &h00001003
351Const LOCALE_IDATE = &h00000021
352Const LOCALE_ILDATE = &h00000022
353Const LOCALE_ITIME = &h00000023
354Const LOCALE_ITIMEMARKPOSN = &h00001005
355Const LOCALE_ICENTURY = &h00000024
356Const LOCALE_ITLZERO = &h00000025
357Const LOCALE_IDAYLZERO = &h00000026
358Const LOCALE_IMONLZERO = &h00000027
359Const LOCALE_S1159 = &h00000028
360Const LOCALE_S2359 = &h00000029
361
362Const LOCALE_ICALENDARTYPE = &h00001009
363Const LOCALE_IOPTIONALCALENDAR = &h0000100B
364Const LOCALE_IFIRSTDAYOFWEEK = &h0000100C
365Const LOCALE_IFIRSTWEEKOFYEAR = &h0000100D
366
367Const LOCALE_SDAYNAME1 = &h0000002A
368Const LOCALE_SDAYNAME2 = &h0000002B
369Const LOCALE_SDAYNAME3 = &h0000002C
370Const LOCALE_SDAYNAME4 = &h0000002D
371Const LOCALE_SDAYNAME5 = &h0000002E
372Const LOCALE_SDAYNAME6 = &h0000002F
373Const LOCALE_SDAYNAME7 = &h00000030
374Const LOCALE_SABBREVDAYNAME1 = &h00000031
375Const LOCALE_SABBREVDAYNAME2 = &h00000032
376Const LOCALE_SABBREVDAYNAME3 = &h00000033
377Const LOCALE_SABBREVDAYNAME4 = &h00000034
378Const LOCALE_SABBREVDAYNAME5 = &h00000035
379Const LOCALE_SABBREVDAYNAME6 = &h00000036
380Const LOCALE_SABBREVDAYNAME7 = &h00000037
381Const LOCALE_SMONTHNAME1 = &h00000038
382Const LOCALE_SMONTHNAME2 = &h00000039
383Const LOCALE_SMONTHNAME3 = &h0000003A
384Const LOCALE_SMONTHNAME4 = &h0000003B
385Const LOCALE_SMONTHNAME5 = &h0000003C
386Const LOCALE_SMONTHNAME6 = &h0000003D
387Const LOCALE_SMONTHNAME7 = &h0000003E
388Const LOCALE_SMONTHNAME8 = &h0000003F
389Const LOCALE_SMONTHNAME9 = &h00000040
390Const LOCALE_SMONTHNAME10 = &h00000041
391Const LOCALE_SMONTHNAME11 = &h00000042
392Const LOCALE_SMONTHNAME12 = &h00000043
393Const LOCALE_SMONTHNAME13 = &h0000100E
394Const LOCALE_SABBREVMONTHNAME1 = &h00000044
395Const LOCALE_SABBREVMONTHNAME2 = &h00000045
396Const LOCALE_SABBREVMONTHNAME3 = &h00000046
397Const LOCALE_SABBREVMONTHNAME4 = &h00000047
398Const LOCALE_SABBREVMONTHNAME5 = &h00000048
399Const LOCALE_SABBREVMONTHNAME6 = &h00000049
400Const LOCALE_SABBREVMONTHNAME7 = &h0000004A
401Const LOCALE_SABBREVMONTHNAME8 = &h0000004B
402Const LOCALE_SABBREVMONTHNAME9 = &h0000004C
403Const LOCALE_SABBREVMONTHNAME10 = &h0000004D
404Const LOCALE_SABBREVMONTHNAME11 = &h0000004E
405Const LOCALE_SABBREVMONTHNAME12 = &h0000004F
406Const LOCALE_SABBREVMONTHNAME13 = &h0000100F
407
408Const LOCALE_SPOSITIVESIGN = &h00000050
409Const LOCALE_SNEGATIVESIGN = &h00000051
410Const LOCALE_IPOSSIGNPOSN = &h00000052
411Const LOCALE_INEGSIGNPOSN = &h00000053
412Const LOCALE_IPOSSYMPRECEDES = &h00000054
413Const LOCALE_IPOSSEPBYSPACE = &h00000055
414Const LOCALE_INEGSYMPRECEDES = &h00000056
415Const LOCALE_INEGSEPBYSPACE = &h00000057
416
417'if WINVER >= &h0400
418Const LOCALE_FONTSIGNATURE = &h00000058
419Const LOCALE_SISO639LANGNAME = &h00000059
420Const LOCALE_SISO3166CTRYNAME = &h0000005A
421'#endif
422
423'if WINVER >= &h0500
424Const LOCALE_IDEFAULTEBCDICCODEPAGE = &h00001012
425Const LOCALE_IPAPERSIZE = &h0000100A
426Const LOCALE_SENGCURRNAME = &h00001007
427Const LOCALE_SNATIVECURRNAME = &h00001008
428Const LOCALE_SYEARMONTH = &h00001006
429Const LOCALE_SSORTNAME = &h00001013
430Const LOCALE_IDIGITSUBSTITUTION = &h00001014
431'#endif
432
433'if WINVER >= &h0600
434Const LOCALE_SNAME = &h0000005c
435Const LOCALE_SDURATION = &h0000005d
436Const LOCALE_SKEYBOARDSTOINSTALL = &h0000005e
437Const LOCALE_SSHORTESTDAYNAME1 = &h00000060
438Const LOCALE_SSHORTESTDAYNAME2 = &h00000061
439Const LOCALE_SSHORTESTDAYNAME3 = &h00000062
440Const LOCALE_SSHORTESTDAYNAME4 = &h00000063
441Const LOCALE_SSHORTESTDAYNAME5 = &h00000064
442Const LOCALE_SSHORTESTDAYNAME6 = &h00000065
443Const LOCALE_SSHORTESTDAYNAME7 = &h00000066
444Const LOCALE_SISO639LANGNAME2 = &h00000067
445Const LOCALE_SISO3166CTRYNAME2 = &h00000068
446Const LOCALE_SNAN = &h00000069
447Const LOCALE_SPOSINFINITY = &h0000006a
448Const LOCALE_SNEGINFINITY = &h0000006b
449Const LOCALE_SSCRIPTS = &h0000006c
450Const LOCALE_SPARENT = &h0000006d
451Const LOCALE_SCONSOLEFALLBACKNAME = &h0000006e
452Const LOCALE_SLANGDISPLAYNAME = &h0000006f
453'#endif
454
455Const TIME_NOMINUTESORSECONDS = &h00000001
456Const TIME_NOSECONDS = &h00000002
457Const TIME_NOTIMEMARKER = &h00000004
458Const TIME_FORCE24HOURFORMAT = &h00000008
459
460Const DATE_SHORTDATE = &h00000001
461Const DATE_LONGDATE = &h00000002
462Const DATE_USE_ALT_CALENDAR = &h00000004
463
464'if WINVER >= &h0500
465Const DATE_YEARMONTH = &h00000008
466Const DATE_LTRREADING = &h00000010
467Const DATE_RTLREADING = &h00000020
468'#endif
469
470'if WINVER >= &h0500
471Const CAL_NOUSEROVERRIDE = LOCALE_NOUSEROVERRIDE
472Const CAL_USE_CP_ACP = LOCALE_USE_CP_ACP
473Const CAL_RETURN_NUMBER = LOCALE_RETURN_NUMBER
474'#endif
475
476Const CAL_ICALINTVALUE = &h00000001
477Const CAL_SCALNAME = &h00000002
478Const CAL_IYEAROFFSETRANGE = &h00000003
479Const CAL_SERASTRING = &h00000004
480Const CAL_SSHORTDATE = &h00000005
481Const CAL_SLONGDATE = &h00000006
482Const CAL_SDAYNAME1 = &h00000007
483Const CAL_SDAYNAME2 = &h00000008
484Const CAL_SDAYNAME3 = &h00000009
485Const CAL_SDAYNAME4 = &h0000000a
486Const CAL_SDAYNAME5 = &h0000000b
487Const CAL_SDAYNAME6 = &h0000000c
488Const CAL_SDAYNAME7 = &h0000000d
489Const CAL_SABBREVDAYNAME1 = &h0000000e
490Const CAL_SABBREVDAYNAME2 = &h0000000f
491Const CAL_SABBREVDAYNAME3 = &h00000010
492Const CAL_SABBREVDAYNAME4 = &h00000011
493Const CAL_SABBREVDAYNAME5 = &h00000012
494Const CAL_SABBREVDAYNAME6 = &h00000013
495Const CAL_SABBREVDAYNAME7 = &h00000014
496Const CAL_SMONTHNAME1 = &h00000015
497Const CAL_SMONTHNAME2 = &h00000016
498Const CAL_SMONTHNAME3 = &h00000017
499Const CAL_SMONTHNAME4 = &h00000018
500Const CAL_SMONTHNAME5 = &h00000019
501Const CAL_SMONTHNAME6 = &h0000001a
502Const CAL_SMONTHNAME7 = &h0000001b
503Const CAL_SMONTHNAME8 = &h0000001c
504Const CAL_SMONTHNAME9 = &h0000001d
505Const CAL_SMONTHNAME10 = &h0000001e
506Const CAL_SMONTHNAME11 = &h0000001f
507Const CAL_SMONTHNAME12 = &h00000020
508Const CAL_SMONTHNAME13 = &h00000021
509Const CAL_SABBREVMONTHNAME1 = &h00000022
510Const CAL_SABBREVMONTHNAME2 = &h00000023
511Const CAL_SABBREVMONTHNAME3 = &h00000024
512Const CAL_SABBREVMONTHNAME4 = &h00000025
513Const CAL_SABBREVMONTHNAME5 = &h00000026
514Const CAL_SABBREVMONTHNAME6 = &h00000027
515Const CAL_SABBREVMONTHNAME7 = &h00000028
516Const CAL_SABBREVMONTHNAME8 = &h00000029
517Const CAL_SABBREVMONTHNAME9 = &h0000002a
518Const CAL_SABBREVMONTHNAME10 = &h0000002b
519Const CAL_SABBREVMONTHNAME11 = &h0000002c
520Const CAL_SABBREVMONTHNAME12 = &h0000002d
521Const CAL_SABBREVMONTHNAME13 = &h0000002e
522
523'if WINVER >= &h0500
524Const CAL_SYEARMONTH = &h0000002f
525Const CAL_ITWODIGITYEARMAX = &h00000030
526'#endif
527
528'if WINVER >= &h0600
529Const CAL_SSHORTESTDAYNAME1 = &h00000031
530Const CAL_SSHORTESTDAYNAME2 = &h00000032
531Const CAL_SSHORTESTDAYNAME3 = &h00000033
532Const CAL_SSHORTESTDAYNAME4 = &h00000034
533Const CAL_SSHORTESTDAYNAME5 = &h00000035
534Const CAL_SSHORTESTDAYNAME6 = &h00000036
535Const CAL_SSHORTESTDAYNAME7 = &h00000037
536'#endif
537
538Const ENUM_ALL_CALENDARS = &hffffffff
539
540Const CAL_GREGORIAN = 1
541Const CAL_GREGORIAN_US = 2
542Const CAL_JAPAN = 3
543Const CAL_TAIWAN = 4
544Const CAL_KOREA = 5
545Const CAL_HIJRI = 6
546Const CAL_THAI = 7
547Const CAL_HEBREW = 8
548Const CAL_GREGORIAN_ME_FRENCH = 9
549Const CAL_GREGORIAN_ARABIC = 10
550Const CAL_GREGORIAN_XLIT_ENGLISH = 11
551Const CAL_GREGORIAN_XLIT_FRENCH = 12
552Const CAL_UMALQURA = 23
553
554Const LGRPID_WESTERN_EUROPE = &h0001
555Const LGRPID_CENTRAL_EUROPE = &h0002
556Const LGRPID_BALTIC = &h0003
557Const LGRPID_GREEK = &h0004
558Const LGRPID_CYRILLIC = &h0005
559Const LGRPID_TURKIC = &h0006
560Const LGRPID_TURKISH = &h0006
561Const LGRPID_JAPANESE = &h0007
562Const LGRPID_KOREAN = &h0008
563Const LGRPID_TRADITIONAL_CHINESE = &h0009
564Const LGRPID_SIMPLIFIED_CHINESE = &h000a
565Const LGRPID_THAI = &h000b
566Const LGRPID_HEBREW = &h000c
567Const LGRPID_ARABIC = &h000d
568Const LGRPID_VIETNAMESE = &h000e
569Const LGRPID_INDIC = &h000f
570Const LGRPID_GEORGIAN = &h0010
571Const LGRPID_ARMENIAN = &h0011
572
573'if WINVER >= &h0600
574Const MUI_LANGUAGE_ID = &h4
575Const MUI_LANGUAGE_NAME = &h8
576Const MUI_MERGE_SYSTEM_FALLBACK = &h10
577Const MUI_MERGE_USER_FALLBACK = &h20
578Const MUI_THREAD_LANGUAGES = &h40
579Const MUI_CONSOLE_FILTER = &h100
580Const MUI_COMPLEX_SCRIPT_FILTER = &h200
581Const MUI_RESET_FILTERS = &h001
582Const MUI_USER_PREFERRED_UI_LANGUAGES = &h10
583Const MUI_USE_INSTALLED_LANGUAGES = &h20
584Const MUI_USE_SEARCH_ALL_LANGUAGES = &h40
585Const MUI_LANG_NEUTRAL_PE_FILE = &h100
586Const MUI_NON_LANG_NEUTRAL_FILE = &h200
587Const MUI_MACHINE_LANGUAGE_SETTINGS = &h400
588Const MUI_BYPASS_SESSION_BEHAVIOR = &h80
589Const MUI_FILETYPE_NOT_LANGUAGE_NEUTRAL = &h001
590Const MUI_FILETYPE_LANGUAGE_NEUTRAL_MAIN = &h002
591Const MUI_FILETYPE_LANGUAGE_NEUTRAL_MUI = &h004
592Const MUI_QUERY_TYPE = &h001
593Const MUI_QUERY_CHECKSUM = &h002
594Const MUI_QUERY_LANGUAGE_NAME = &h004
595Const MUI_QUERY_RESOURCE_TYPES = &h008
596Const MUI_FILEINFO_VERSION = &h001
597Const MUI_SXS_FALLBACK = &h00010000
598
599Const MUI_FULL_LANGUAGE = &h01
600Const MUI_PARTIAL_LANGUAGE = &h02
601Const MUI_LIP_LANGUAGE = &h04
602Const MUI_LANGUAGE_INSTALLED = &h20
603Const MUI_LANGUAGE_LICENSED = &h40
604
605Const MUI_PUBLIC_LANGUAGE_TYPE_FLAGS_MASK = &h67
606
607'Const MUI_CALLBACK_ALL_FLAGS = MUI_CALLBACK_FLAG_UPGRADED_INSTALLATION
608
609'#endif
610
611TypeDef LGRPID = DWord
612TypeDef LCTYPE = DWord
613TypeDef CALTYPE = DWord
614TypeDef CALID = DWord
615
616Type CPINFO
617 MaxCharSize As DWord
618 DefaultChar[ELM(MAX_DEFAULTCHAR)] As Byte
619 LeadByte[ELM(MAX_LEADBYTES)] As Byte
620End Type
621
622Type CPINFOEX
623 MaxCharSize As DWord
624 DefaultChar[ELM(MAX_DEFAULTCHAR)] As Byte
625 LeadByte[ELM(MAX_LEADBYTES)] As Byte
626 UnicodeDefaultChar As WCHAR
627 CodePage As DWord
628 CodePageName[ELM(MAX_PATH)] As TCHAR
629End Type
630
631Type NUMBERFMTA
632 NumDigits As DWord
633 LeadingZero As DWord
634 Grouping As DWord
635 lpDecimalSep As LPSTR
636 lpThousandSep As LPSTR
637 NegativeOrder As DWord
638End Type
639Type NUMBERFMTW
640 NumDigits As DWord
641 LeadingZero As DWord
642 Grouping As DWord
643 lpDecimalSep As LPWSTR
644 lpThousandSep As LPWSTR
645 NegativeOrder As DWord
646End Type
647#ifdef UNICODE
648TypeDef NUMBERFMT = NUMBERFMTW
649#else
650TypeDef NUMBERFMT = NUMBERFMTA
651#endif
652Type CURRENCYFMTA
653 NumDigits As DWord
654 LeadingZero As DWord
655 Grouping As DWord
656 lpDecimalSep As LPSTR
657 lpThousandSep As LPSTR
658 NegativeOrder As DWord
659 PositiveOrder As DWord
660 lpCurrencySymbol As LPSTR
661End Type
662Type CURRENCYFMTW
663 NumDigits As DWord
664 LeadingZero As DWord
665 Grouping As DWord
666 lpDecimalSep As LPWSTR
667 lpThousandSep As LPWSTR
668 NegativeOrder As DWord
669 PositiveOrder As DWord
670 lpCurrencySymbol As LPWSTR
671End Type
672#ifdef UNICODE
673TypeDef CURRENCYFMT = CURRENCYFMTW
674#else
675TypeDef CURRENCYFMT = CURRENCYFMTA
676#endif
677Const Enum SYSNLS_FUNCTION
678 COMPARE_STRING = &h0001
679End Enum
680TypeDef NLS_FUNCTION = DWord
681
682Type NLSVERSIONINFO
683 dwNLSVersionInfoSize As DWord
684 dwNLSVersion As DWord
685 dwDefinedVersion As DWord
686End Type
687
688Type NLSVERSIONINFOEX
689 dwNLSVersionInfoSize As DWord
690 dwNLSVersion As DWord
691 dwDefinedVersion As DWord
692 dwEffectiveId As DWord
693 guidCustomVersion As GUID
694End Type
695
696TypeDef GEOID = LONG
697TypeDef GEOTYPE = DWord
698TypeDef GEOCLASS = DWord
699
700Const GEOID_NOT_AVAILABLE = -1
701
702Const Enum SYSGEOTYPE
703 GEO_NATION = &h0001
704 GEO_LATITUDE = &h0002
705 GEO_LONGITUDE = &h0003
706 GEO_ISO2 = &h0004
707 GEO_ISO3 = &h0005
708 GEO_RFC1766 = &h0006
709 GEO_LCID = &h0007
710 GEO_FRIENDLYNAME = &h0008
711 GEO_OFFICIALNAME = &h0009
712 GEO_TIMEZONES = &h000A
713 GEO_OFFICIALLANGUAGES = &h000B
714End Enum
715
716Const Enum SYSGEOCLASS
717 GEOCLASS_NATION = 16
718 GEOCLASS_REGION = 14
719End Enum
720
721'#if WINVER >= &h0600
722Const Enum NORM_FORM
723 NormalizationOther = 0
724 NormalizationC = &h1
725 NormalizationD = &h2
726 NormalizationKC = &h5
727 NormalizationKD = &h6
728End Enum
729
730Const IDN_ALLOW_UNASSIGNED = &h01
731Const IDN_USE_STD3_ASCII_RULES = &h02
732
733Const VS_ALLOW_LATIN = &h0001
734
735Const GSS_ALLOW_INHERITED_COMMON = &h0001
736'#endif
737
738TypeDef LANGUAGEGROUP_ENUMPROC = *Function(LanguageGroup As LGRPID, lpLanguageGroupString As LPSTR, lpLanguageGroupNameString As LPSTR, dwFlags As DWord, lParam As LONG_PTR) As BOOL
739TypeDef LANGGROUPLOCALE_ENUMPROC = *Function(LanguageGroup As LGRPID, locale As LCID, lpLocaleString As LPSTR, lParam As LONG_PTR) As BOOL
740TypeDef UILANGUAGE_ENUMPROC = *Function(lpUILanguageString As LPTSTR, lParam As LONG_PTR) As BOOL
741TypeDef LOCALE_ENUMPROC = *Function(lpLocaleString As LPTSTR) As BOOL
742TypeDef CODEPAGE_ENUMPROC = *Function(lpCodePageString As LPTSTR) As BOOL
743TypeDef DATEFMT_ENUMPROC = *Function(lpDateFormatString As LPTSTR) As BOOL
744TypeDef DATEFMT_ENUMPROCEX = *Function(lpDateFormatString As LPTSTR, CalendarID As CALID) As BOOL
745TypeDef TIMEFMT_ENUMPROC = *Function(lpTimeFormatString As LPTSTR) As BOOL
746TypeDef CALINFO_ENUMPROC = *Function(lpCalendarInfoString As LPTSTR) As BOOL
747TypeDef CALINFO_ENUMPROCEX = *Function(lpCalendarInfoString As LPTSTR, Calendar As CALID) As BOOL
748TypeDef GEO_ENUMPROC = *Function(GeoId As GEOID) As BOOL
749
750Type FILEMUIINFO
751 dwSize As DWord
752 dwVersion As DWord
753 dwFileType As DWord
754 pChecksum[ELM(16)] As Byte
755 pServiceChecksum[ELM(16)] As Byte
756 dwLanguageNameOffset As DWord
757 dwTypeIDMainSize As DWord
758 dwTypeIDMainOffset As DWord
759 dwTypeNameMainOffset As DWord
760 dwTypeIDMUISize As DWord
761 dwTypeIDMUIOffset As DWord
762 dwTypeNameMUIOffset As DWord
763 abBuffer[ELM(8)] As Byte
764End Type
765
766Const IS_HIGH_SURROGATE(wch) = (((wch) >= HIGH_SURROGATE_START) And ((wch) <= HIGH_SURROGATE_END))
767Const IS_LOW_SURROGATE(wch) = (((wch) >= LOW_SURROGATE_START) And ((wch) <= LOW_SURROGATE_END))
768Const IS_SURROGATE_PAIR(hs, ls) = (IS_HIGH_SURROGATE(hs) And IS_LOW_SURROGATE(ls))
769
770Function FILEMUIINFO_GET_CULTURE(pInfo As *FILEMUIINFO) As LPWSTR
771 If pInfo->dwLanguageNameOffset > 0 Then
772 FILEMUIINFO_GET_CULTURE = ((pInfo As ULONG_PTR) + pInfo->dwLanguageNameOffset) As LPWSTR
773 End If
774End Function
775Function FILEMUIINFO_GET_MAIN_TYPEIDS(pInfo As *FILEMUIINFO) As *DWord
776 If pInfo->dwTypeIDMainOffset > 0 Then
777 FILEMUIINFO_GET_MAIN_TYPEIDS = ((pInfo As ULONG_PTR) + pInfo->dwTypeIDMainOffset) As *DWord
778 End If
779End Function
780Function FILEMUIINFO_GET_MAIN_TYPEID(pInfo As *FILEMUIINFO, iType As SIZE_T) As *DWord
781 If iType < pInfo->dwTypeIDMainSize And pInfo->dwTypeIDMainOffset > 0 Then
782 FILEMUIINFO_GET_MAIN_TYPEID = ((pInfo As ULONG_PTR) + pInfo->dwTypeIDMainOffset + iType) As *DWord
783 End If
784End Function
785Function FILEMUIINFO_GET_MAIN_TYPENAMES(pInfo As *FILEMUIINFO) As LPWSTR
786 If pInfo->dwTypeNameMainOffset > 0 Then
787 FILEMUIINFO_GET_MAIN_TYPENAMES = ((pInfo As ULONG_PTR) + pInfo->dwTypeNameMainOffset) As LPWSTR
788 End If
789End Function
790Function FILEMUIINFO_GET_MUI_TYPEIDS(pInfo As *FILEMUIINFO) As *DWord
791 If pInfo->dwTypeIDMUIOffset > 0 Then
792 FILEMUIINFO_GET_MUI_TYPEIDS = ((pInfo As ULONG_PTR) + pInfo->dwTypeIDMUIOffset) As *DWord
793 End If
794End Function
795Function FILEMUIINFO_GET_MUI_TYPEID(pInfo As *FILEMUIINFO, iType As SIZE_T) As *DWord
796 If iType < pInfo->dwTypeIDMUISize And pInfo->dwTypeIDMUIOffset > 0 Then
797 FILEMUIINFO_GET_MUI_TYPEID = ((pInfo As ULONG_PTR) + pInfo->dwTypeIDMUIOffset + iType) As *DWord
798 End If
799End Function
800Function FILEMUIINFO_GET_MUI_TYPENAMES(pInfo As *FILEMUIINFO) As LPWSTR
801 If pInfo->dwTypeNameMUIOffset > 0 Then
802 FILEMUIINFO_GET_MUI_TYPENAMES = ((pInfo As ULONG_PTR) + pInfo->dwTypeNameMUIOffset) As LPWSTR
803 End If
804End Function
805
806Declare Function IsValidCodePage Lib "kernel32" (CodePage As DWord) As BOOL
807Declare Function GetACP Lib "kernel32" () As DWord
808Declare Function GetOEMCP Lib "kernel32" () As DWord
809Declare Function GetCPInfo Lib "kernel32" (CodePage As DWord, ByRef CPInfo As CPINFO) As BOOL
810Declare Function GetCPInfoEx Lib "kernel32" Alias _FuncName_GetCPInfoEx (CodePage As DWord, dwFlags As DWord, ByRef CPInfo As CPINFOEX) As BOOL
811Declare Function IsDBCSLeadByte Lib "kernel32" (TestChar As Byte) As BOOL
812Declare Function IsDBCSLeadByteEx Lib "kernel32" (CodePage As DWord, TestChar As Byte) As BOOL
813Declare Function MultiByteToWideChar Lib "kernel32" (CodePage As DWord, dwFlags As DWord, pMultiByteStr As PCSTR, cchMultiByte As Long, pWideCharStr As PWSTR, cchWideChar As Long) As Long
814Declare Function WideCharToMultiByte Lib "Kernel32" (CodePage As DWord, dwFlags As DWord, pWideCharStr As PCWSTR, cchWideChar As Long, pMultiByteStr As PSTR, cbMultiByte As Long, pDefaultChar As PCSTR, pUsedDefaultChar As *BOOL) As Long
815Declare Function CompareString Lib "kernel32" Alias _FuncName_CompareString (Locale As LCID, dwCmpFlags As DWord, lpString1 As LPCTSTR, cchCount1 As Long, lpString2 As LPCTSTR, cchCount2 As Long) As Long
816'#if WINVER >= &h0600
817Declare Function FindNLSString Lib "kernel32" (Locale As LCID, dwFindNLSStringFlags As DWord, lpStringSource As LPCWSTR, cchSource As Long, lpStringValue As LPCWSTR, cchValue As Long, pcchFound As *Long) As Long
818'#endif
819Declare Function LCMapString Lib "kernel32" Alias _FuncName_LCMapString (Locale As LCID, dwMapFlags As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, lpDestStr As LPTSTR, cchDest As Long) As Long
820Declare Function GetLocaleInfo Lib "kernel32" Alias _FuncName_GetLocaleInfo (Locale As LCID, LCType As LCTYPE, lpLCData As LPTSTR, cchData As Long) As Long
821Declare Function SetLocaleInfo Lib "kernel32" Alias _FuncName_SetLocaleInfo (Locale As LCID, LCType As LCTYPE, lpLCData As LPTSTR) As BOOL
822'#if WINVER >= &h040A
823Declare Function GetCalendarInfo Lib "kernel32" Alias _FuncName_GetCalendarInfo (Locale As LCID, Calendar As CALID, CalType As CALTYPE, lpCalData As LPTSTR, cchData As Long, lpValue As *DWord) As Long
824Declare Function SetCalendarInfo Lib "kernel32" Alias _FuncName_SetCalendarInfo (Locale As LCID, Calendar As CALID, CalType As CALTYPE, lpCalData As LPTSTR) As BOOL
825'#endif
826'#if WINVER >= &h0600
827Declare Function LCIDToLocaleName Lib "kernel32" (Locale As LCID, lpName As LPWSTR, cchName As Long, dwFlags As DWord) As Long
828Declare Function LocaleNameToLCID Lib "kernel32" (lpName As LPCWSTR, dwFlags As DWord) As LCID
829'#endif
830Declare Function GetTimeFormat Lib "kernel32" Alias _FuncName_GetTimeFormat (Locale As LCID, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As LPCTSTR, lpTimeStr As LPTSTR, cchTime As Long) As Long
831'#if WINVER >= &h0600
832Declare Function GetDurationFormat Lib "kernel32" (Locale As LCID, dwFlags As DWord, lpDuration As *SYSTEMTIME, ullDuration As QWord, lpFormat As LPCWSTR, lpDurationStr As LPWSTR, cchDuration As Long) As Long
833'#endif
834Declare Function GetDateFormat Lib "kernel32" Alias _FuncName_GetDateFormat (Locale As LCID, dwFlags As DWord, ByRef Date As SYSTEMTIME, lpFormat As LPCTSTR, lpDateStr As LPTSTR, cchDate As Long) As Long
835Declare Function GetNumberFormat Lib "kernel32" Alias _FuncName_GetNumberFormat (Locale As LCID, dwFlags As DWord, lpValue As LPCTSTR, lpFormat As *NUMBERFMT, lpNumberStr As LPTSTR, cchNumber As Long) As Long
836Declare Function GetCurrencyFormat Lib "kernel32" Alias _FuncName_GetCurrencyFormat (Locale As LCID, dwFlags As DWord, lpValue As LPCTSTR, lpFormat As *CURRENCYFMT, lpCurrencyStr As LPTSTR, cchCurrency As Long) As Long
837Declare Function EnumCalendarInfo Lib "kernel32" Alias _FuncName_EnumCalendarInfo (lpCalInfoEnumProc As CALINFO_ENUMPROC, Locale As LCID, Calendar As CALID, CalType As CALTYPE) As BOOL
838'#if WINVER >= &h0500
839Declare Function EnumCalendarInfoEx Lib "kernel32" Alias _FuncName_EnumCalendarInfo (lpCalInfoEnumProcEx As CALINFO_ENUMPROCEX, Locale As LCID, Calendar As CALID, CalType As CALTYPE) As BOOL
840'#endif
841Declare Function EnumTimeFormats Lib "kernel32" Alias _FuncName_EnumTimeFormats (lpTimeFmtEnumProc As TIMEFMT_ENUMPROC, Locale As LCID, dwFlags As DWord) As BOOL
842Declare Function EnumDateFormats Lib "kernel32" Alias _FuncName_EnumDateFormats (lpDateFmtEnumProc As DATEFMT_ENUMPROC, Locale As LCID, dwFlags As DWord) As BOOL
843'#if WINVER >= &h0500
844'Declare Function EnumDateFormatsEx Lib "kernel32" Alias _FuncName_EnumDateFormatsEx (lpDateFmtEnumProcEx As DATEFMT_ENUMPROCEX, Locale As LCID, dwFlags As DWord) As BOOL
845'#endif
846'#if WINVER >= &h0500
847Declare Function IsValidLanguageGroup Lib "kernel32" (LanguageGroup As LGRPID, dwFlags As DWord) As BOOL
848'#endif
849Declare Function GetNLSVersion Lib "kernel32" (Function_ As NLS_FUNCTION, Locale As LCID, ByRef VersionInformation As NLSVERSIONINFO) As BOOL
850Declare Function GetNLSVersion Lib "kernel32" (Function_ As NLS_FUNCTION, dwFlags As DWord, ByRef VersionInformation As NLSVERSIONINFO, lpString As LPCWSTR, cchStr As Long) As BOOL
851Declare Function IsValidLocale Lib "kernel32" (Locale As LCID, dwFlags As DWord) As BOOL
852Declare Function GetGeoInfo Lib "kernel32" Alias _FuncName_GetGeoInfo (Location As GEOID, GeoType As GEOTYPE, lpGeoData As LPTSTR, cchData As Long, LangId As LANGID) As Long
853Declare Function EnumSystemGeoID Lib "kernel32" (GeoClass As GEOCLASS, ParentGeoId As GEOID, lpGeoEnumProc As GEO_ENUMPROC) As BOOL
854Declare Function SetUserGeoID Lib "kernel32" (GeoClass As GEOCLASS) As GEOID
855Declare Function SetUserGeoID Lib "kernel32" (GeoId As GEOID) As BOOL
856Declare Function ConvertDefaultLocale Lib "kernel32" (Locale As LCID) As LCID
857Declare Function GetThreadLocale Lib "kernel32" () As LCID
858Declare Function SetThreadLocale Lib "kernel32" (Locale As LCID) As BOOL
859'#if WINVER >= &h0500
860Declare Function GetSystemDefaultUILanguage Lib "kernel32" () As LANGID
861Declare Function GetUserDefaultUILanguage Lib "kernel32" () As LANGID
862'#endif
863Declare Function GetSystemDefaultLangID Lib "kernel32" () As LANGID
864Declare Function GetUserDefaultLangID Lib "kernel32" () As LANGID
865Declare Function GetSystemDefaultLCID Lib "kernel32" () As LCID
866Declare Function GetUserDefaultLCID Lib "kernel32" () As LCID
867Declare Function SetThreadUILanguage Lib "kernel32" (LangId As LANGID) As LANGID
868'#if WINVER >= &h0600
869Declare Function GetThreadUILanguage Lib "kernel32" () As LANGID
870Declare Function GetUserPreferredUILanguages Lib "kernel32" (dwFlags As DWord, ByRef ulNumLanguages As DWord, pwszLanguagesBuffer As PWSTR, ByRef cchLanguagesBuffer As DWord) As BOOL
871Declare Function GetSystemPreferredUILanguages Lib "kernel32" (dwFlags As DWord, ByRef ulNumLanguages As DWord, pwszLanguagesBuffer As PWSTR, ByRef cchLanguagesBuffer As DWord) As BOOL
872Declare Function GetThreadPreferredUILanguages Lib "kernel32" (dwFlags As DWord, ByRef ulNumLanguages As DWord, pwszLanguagesBuffer As PWSTR, ByRef cchLanguagesBuffer As DWord) As BOOL
873Declare Function SetThreadPreferredUILanguages Lib "kernel32" (dwFlags As DWord, pwszLanguagesBuffer As PCWSTR, pulNumLanguages As *DWord) As BOOL
874Declare Function GetFileMUIInfo Lib "kernel32" (dwFlags As DWord, pcwszFilePath As PCWSTR, ByRef FileMUIInfo As FILEMUIINFO, ByRef pcbFileMUIInfo As DWord) As BOOL
875Declare Function GetFileMUIPath Lib "kernel32" (dwFlags As DWord, pcwszFilePath As PCWSTR, pwszLanguage As PCWSTR, ByRef pcchLanguage As DWord, pwszFileMUIPath As PWSTR, ByRef pcchFileMUIPath As DWord, ByRef ululEnumerator As QWord) As BOOL
876Declare Function GetUILanguageInfo Lib "kernel32" (dwFlags As DWord, pwszLanguage As PCWSTR, pwszFallbackLanguages As PWSTR, pcchFallbackLanguages As *DWord, ByRef Attributes As DWord) As BOOL
877Declare Function NotifyUILanguageChange Lib "kernel32" (dwFlags As DWord, pcwstrNewLanguage As PCWSTR, pcwstrPreviousLanguage As PCWSTR, dwReserved As DWord, pdwStatusRtrn As *DWord) As BOOL
878'#endif
879Declare Function GetStringTypeEx Lib "kernel32" Alias _FuncName_GetStringTypeEx (Locale As LCID, dwInfoType As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, ByRef CharType As Word) As BOOL
880Declare Function GetStringTypeA Lib "kernel32" (Locale As LCID, dwInfoType As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, ByRef CharType As Word) As BOOL
881Declare Function GetStringTypeW Lib "kernel32" (dwInfoType As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, ByRef CharType As Word) As BOOL
882Declare Function FoldString Lib "kernel32" Alias _FuncName_FoldString (dwMapFlags As DWord, lpSrcStr As LPCTSTR, cchSrc As Long, lpDestStr As LPTSTR, cchDest As Long) As Long
883'#if WINVER >= &h0500
884'Declare Function EnumSystemLanguageGroups Lib "kernel32" Alias _FuncName_EnumSystemLanguageGroups (lpLanguageGroupEnumProc As LANGUAGEGROUP_ENUMPROC, dwFlags As DWord, lParam As LONG_PTR) As BOOL
885'Declare Function EnumLanguageGroupLocales Lib "kernel32" Alias _FuncName_EnumLanguageGroupLocales (lpLangGroupLocaleEnumProc As LANGGROUPLOCALE_ENUMPROC, dwFlags As DWord, lParam As LONG_PTR) As BOOL
886'Declare Function EnumUILanguages Lib "kernel32" Alias _FuncName_EnumUILanguages (EnumUILanguages As UILANGUAGE_ENUMPROC, dwFlags As DWord, lParam As LONG_PTR) As BOOL
887'#endif
888Declare Function EnumSystemLocales Lib "kernel32" Alias _FuncName_EnumSystemLocales (lpLocaleEnumProc As LOCALE_ENUMPROC, dwFlags As DWord) As BOOL
889Declare Function EnumSystemCodePages Lib "kernel32" Alias _FuncName_EnumSystemCodePages (lpCodePageEnumProc As CODEPAGE_ENUMPROC, dwFlags As DWord) As BOOL
890'#if WINVER >= &h0600
891Declare Function NormalizeString Lib "kernel32" (NormForm As NORM_FORM, lpSrcString As LPCWSTR, cwSrcLength As Long, lpDstString As LPWSTR, cwDstLength As Long) As Long
892Declare Function IsNormalizedString Lib "kernel32" (NormForm As NORM_FORM, lpString As LPCWSTR, cwLength As Long) As BOOL
893Declare Function IdnToAscii Lib "kernel32" (dwFlags As DWord,lpUnicodeCharStr As LPCWSTR, cchUnicodeChar As Long, lpASCIICharStr As LPWSTR, cchASCIIChar As Long) As Long
894Declare Function IdnToNameprepUnicode Lib "kernel32" (dwFlags As DWord, lpUnicodeCharStr As LPCWSTR,cchUnicodeChar As Long, lpNameprepCharStr As LPWSTR, cchNameprepChar As Long) As Long
895Declare Function IdnToUnicode Lib "kernel32" (dwFlags As DWord, lpASCIICharStr As LPCWSTR, cchASCIIChar As Long, lpUnicodeCharStr As LPWSTR, cchUnicodeChar As Long) As Long
896Declare Function VerifyScripts Lib "kernel32" (dwFlags As DWord, lpLocaleScripts As LPCWSTR, cchLocaleScripts As Long, lpTestScripts As LPCWSTR, cchTestScripts As Long) As BOOL
897Declare Function GetStringScripts Lib "kernel32" (dwFlags As DWord, lpString As LPCWSTR, cchString As Long, lpScripts As LPWSTR, cchScripts As Long) As Long
898'#endif
899'#if WINVER >= &h0600
900'Const LOCALE_NAME_USER_DEFAULT = NULL
901'Const LOCALE_NAME_INVARIANT = L""
902'Const LOCALE_NAME_SYSTEM_DEFAULT = L"!x-sys-default-locale"
903Declare Function GetLocaleInfoEx Lib "kernel32" (lpLocaleName As LPCWSTR, LCType As LCTYPE, lpLCData As LPWSTR, cchData As Long) As Long
904Declare Function GetCalendarInfoEx Lib "kernel32" (lpLocaleName As LPCWSTR, Calendar As CALID, lpReserved As LPCWSTR, CalType As CALTYPE, lpCalData As LPWSTR, cchData As Long, lpValue As *DWord) As Long
905Declare Function GetTimeFormatEx Lib "kernel32" (lpLocaleName As LPCWSTR, dwFlags As DWord, ByRef Time As SYSTEMTIME, lpFormat As LPCWSTR, lpTimeStr As LPWSTR, cchTime As Long) As Long
906Declare Function GetDateFormatEx Lib "kernel32" (lpLocaleName As LPCWSTR, dwFlags As DWord, ByRef Date As SYSTEMTIME, lpFormat As LPCWSTR, lpDateStr As LPWSTR, cchDate As Long, lpCalendar As LPCWSTR) As Long
907Declare Function GetDurationFormatEx Lib "kernel32" (lpLocaleName As LPCWSTR, dwFlags As DWord, lpDuration As *SYSTEMTIME, ullDuration As QWord, lpFormat As LPCWSTR, lpDurationStr As LPWSTR, cchDuration As Long) As Long
908Declare Function GetNumberFormatEx Lib "kernel32" (lpLocaleName As LPCWSTR, dwFlags As DWord, lpValue As LPCWSTR, lpFormat As *NUMBERFMTW, lpNumberStr As LPWSTR, cchNumber As Long) As Long
909Declare Function GetCurrencyFormatEx Lib "kernel32" (lpLocaleName As LPCWSTR, dwFlags As DWord, lpValue As LPCWSTR, lpFormat As *CURRENCYFMTW, lpCurrencyStr As LPWSTR, cchCurrency As Long) As Long
910Declare Function GetUserDefaultLocaleName Lib "kernel32" (lpLocaleName As LPWSTR, cchLocaleName As Long) As Long
911Declare Function GetSystemDefaultLocaleName Lib "kernel32" (lpLocaleName As LPWSTR, cchLocaleName As Long) As Long
912Declare Function GetNLSVersionEx Lib "kernel32" (function_ As NLS_FUNCTION, lpLocaleName As LPCWSTR, ByRef VersionInformation As NLSVERSIONINFOEX) As BOOL
913Declare Function CompareStringEx Lib "kernel32" (lpLocaleName As LPWSTR, dwCmpFlags As DWord, lpString1 As LPCWSTR, cchCount1 As Long, lpString2 As LPCWSTR, cchCount2 As Long, lpVersionInformation As *NLSVERSIONINFO, lpReserved As VoidPtr, lParam As LPARAM) As Long
914Declare Function FindNLSString Lib "kernel32" (lpLocaleName As LPWSTR, dwFindNLSStringFlags As DWord, lpStringSource As LPCWSTR, cchSource As Long, lpStringValue As LPCWSTR, cchValue As Long, pcchFound As *Long, lpVersionInformation As *NLSVERSIONINFO, lpReserved As VoidPtr, lParam As LPARAM) As Long
915Declare Function LCMapStringEx Lib "kernel32" (lpLocaleName As LPWSTR, dwMapFlags As DWord, lpSrcStr As LPCWSTR, cchSrc As Long, lpDestStr As LPWSTR, cchDest As Long, lpVersionInformation As *NLSVERSIONINFO, lpReserved As VoidPtr, lParam As LPARAM) As Long
916Declare Function CompareStringOrdinal Lib "kernel32" (lpString1 As LPCTSTR, cchCount1 As Long, lpString2 As LPCTSTR, cchCount2 As Long, bIgnoreCase As BOOL) As Long
917Declare Function IsValidLocaleName Lib "kernel32" (lpLocaleName As LPCWSTR) As BOOL
918TypeDef CALINFO_ENUMPROCEXEX = *Function(lpCalendarInfoString As LPWSTR, Calendar As CALID, lParam As LPARAM) As BOOL
919Declare Function EnumCalendarInfoExEx Lib "kernel32" (pCalInfoEnumProcExEx As CALINFO_ENUMPROCEXEX, lpLocaleName As LPCWSTR, Calendar As CALID, lpReserved As LPCWSTR, CalType As CALTYPE, lParam As LPARAM) As BOOL
920TypeDef DATEFMT_ENUMPROCEXEX = *Function(lpDateFormatString As LPWSTR, CalendarId As CALID, lParam As LPARAM) As BOOL
921Declare Function EnumDateFormatsExEx Lib "kernel32" (lpDateFmtEnumProcExEx As DATEFMT_ENUMPROCEXEX, lpLocaleName As LPCWSTR, dwFlags As DWord, lParam As LPARAM) As BOOL
922TypeDef TIMEFMT_ENUMPROCEX = *Function(lpTimeFormatString As LPWSTR, lParam As LPARAM) As BOOL
923Declare Function EnumTimeFormatsEx Lib "kernel32" (lpTimeFmtEnumProcEx As TIMEFMT_ENUMPROCEX, lpLocaleName As LPCWSTR, dwFlags As DWord, lParam As LPARAM) As BOOL
924TypeDef LOCALE_ENUMPROCEX = *Function(lpTimeFormatString As LPWSTR, dwFlags As DWord, lParam As LPARAM) As BOOL
925Declare Function EnumSystemLocalesEx Lib "kernel32" (lpLocaleEnumProcEx As LOCALE_ENUMPROCEX, dwFlags As DWord, lParam As LPARAM, lpReserved As VoidPtr) As BOOL
926'#endif
Note: See TracBrowser for help on using the repository browser.