annotate win32/winnls.d @ 1:4a9dcbd9e54f

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