Use slighly more accurate formula for C816.
[wine/multimedia.git] / include / winnls.h
blobfba194f00d3209feba8b33cdf0c5ea56470cc47b
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINNLS_H
20 #define __WINE_WINNLS_H
21 #ifndef NONLS
23 #include "winbase.h"
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
30 #define MB_PRECOMPOSED 0x00000001
31 #define MB_COMPOSITE 0x00000002
32 #define MB_USEGLYPHCHARS 0x00000004
33 #define MB_ERR_INVALID_CHARS 0x00000008
35 #define LCID_INSTALLED 0x00000001
37 /* flags to GetLocaleInfo */
38 #define LOCALE_NOUSEROVERRIDE 0x80000000
39 #define LOCALE_USE_CP_ACP 0x40000000
40 #define LOCALE_RETURN_NUMBER 0x20000000
42 /* When adding new defines, don't forget to add an entry to the
43 * locale_name2id map in ole/ole2nls.c
45 #define LOCALE_ILANGUAGE 0x00000001
46 #define LOCALE_SLANGUAGE 0x00000002
47 #define LOCALE_SENGLANGUAGE 0x00001001
48 #define LOCALE_SABBREVLANGNAME 0x00000003
49 #define LOCALE_SNATIVELANGNAME 0x00000004
50 #define LOCALE_ICOUNTRY 0x00000005
51 #define LOCALE_SCOUNTRY 0x00000006
52 #define LOCALE_SENGCOUNTRY 0x00001002
53 #define LOCALE_SABBREVCTRYNAME 0x00000007
54 #define LOCALE_SNATIVECTRYNAME 0x00000008
55 #define LOCALE_IDEFAULTLANGUAGE 0x00000009
56 #define LOCALE_IDEFAULTCOUNTRY 0x0000000A
57 #define LOCALE_IDEFAULTCODEPAGE 0x0000000B
58 #define LOCALE_IDEFAULTANSICODEPAGE 0x00001004
59 #define LOCALE_IDEFAULTMACCODEPAGE 0x00001011
60 #define LOCALE_SLIST 0x0000000C
61 #define LOCALE_IMEASURE 0x0000000D
62 #define LOCALE_SDECIMAL 0x0000000E
63 #define LOCALE_STHOUSAND 0x0000000F
64 #define LOCALE_SGROUPING 0x00000010
65 #define LOCALE_IDIGITS 0x00000011
66 #define LOCALE_ILZERO 0x00000012
67 #define LOCALE_INEGNUMBER 0x00001010
68 #define LOCALE_SNATIVEDIGITS 0x00000013
69 #define LOCALE_SCURRENCY 0x00000014
70 #define LOCALE_SINTLSYMBOL 0x00000015
71 #define LOCALE_SMONDECIMALSEP 0x00000016
72 #define LOCALE_SMONTHOUSANDSEP 0x00000017
73 #define LOCALE_SMONGROUPING 0x00000018
74 #define LOCALE_ICURRDIGITS 0x00000019
75 #define LOCALE_IINTLCURRDIGITS 0x0000001A
76 #define LOCALE_ICURRENCY 0x0000001B
77 #define LOCALE_INEGCURR 0x0000001C
78 #define LOCALE_SDATE 0x0000001D
79 #define LOCALE_STIME 0x0000001E
80 #define LOCALE_SSHORTDATE 0x0000001F
81 #define LOCALE_SLONGDATE 0x00000020
82 #define LOCALE_STIMEFORMAT 0x00001003
83 #define LOCALE_IDATE 0x00000021
84 #define LOCALE_ILDATE 0x00000022
85 #define LOCALE_ITIME 0x00000023
86 #define LOCALE_ITIMEMARKPOSN 0x00001005
87 #define LOCALE_ICENTURY 0x00000024
88 #define LOCALE_ITLZERO 0x00000025
89 #define LOCALE_IDAYLZERO 0x00000026
90 #define LOCALE_IMONLZERO 0x00000027
91 #define LOCALE_S1159 0x00000028
92 #define LOCALE_S2359 0x00000029
93 #define LOCALE_ICALENDARTYPE 0x00001009
94 #define LOCALE_IOPTIONALCALENDAR 0x0000100B
95 #define LOCALE_IFIRSTDAYOFWEEK 0x0000100C
96 #define LOCALE_IFIRSTWEEKOFYEAR 0x0000100D
97 #define LOCALE_SDAYNAME1 0x0000002A
98 #define LOCALE_SDAYNAME2 0x0000002B
99 #define LOCALE_SDAYNAME3 0x0000002C
100 #define LOCALE_SDAYNAME4 0x0000002D
101 #define LOCALE_SDAYNAME5 0x0000002E
102 #define LOCALE_SDAYNAME6 0x0000002F
103 #define LOCALE_SDAYNAME7 0x00000030
104 #define LOCALE_SABBREVDAYNAME1 0x00000031
105 #define LOCALE_SABBREVDAYNAME2 0x00000032
106 #define LOCALE_SABBREVDAYNAME3 0x00000033
107 #define LOCALE_SABBREVDAYNAME4 0x00000034
108 #define LOCALE_SABBREVDAYNAME5 0x00000035
109 #define LOCALE_SABBREVDAYNAME6 0x00000036
110 #define LOCALE_SABBREVDAYNAME7 0x00000037
111 #define LOCALE_SMONTHNAME1 0x00000038
112 #define LOCALE_SMONTHNAME2 0x00000039
113 #define LOCALE_SMONTHNAME3 0x0000003A
114 #define LOCALE_SMONTHNAME4 0x0000003B
115 #define LOCALE_SMONTHNAME5 0x0000003C
116 #define LOCALE_SMONTHNAME6 0x0000003D
117 #define LOCALE_SMONTHNAME7 0x0000003E
118 #define LOCALE_SMONTHNAME8 0x0000003F
119 #define LOCALE_SMONTHNAME9 0x00000040
120 #define LOCALE_SMONTHNAME10 0x00000041
121 #define LOCALE_SMONTHNAME11 0x00000042
122 #define LOCALE_SMONTHNAME12 0x00000043
123 #define LOCALE_SMONTHNAME13 0x0000100E
124 #define LOCALE_SABBREVMONTHNAME1 0x00000044
125 #define LOCALE_SABBREVMONTHNAME2 0x00000045
126 #define LOCALE_SABBREVMONTHNAME3 0x00000046
127 #define LOCALE_SABBREVMONTHNAME4 0x00000047
128 #define LOCALE_SABBREVMONTHNAME5 0x00000048
129 #define LOCALE_SABBREVMONTHNAME6 0x00000049
130 #define LOCALE_SABBREVMONTHNAME7 0x0000004A
131 #define LOCALE_SABBREVMONTHNAME8 0x0000004B
132 #define LOCALE_SABBREVMONTHNAME9 0x0000004C
133 #define LOCALE_SABBREVMONTHNAME10 0x0000004D
134 #define LOCALE_SABBREVMONTHNAME11 0x0000004E
135 #define LOCALE_SABBREVMONTHNAME12 0x0000004F
136 #define LOCALE_SABBREVMONTHNAME13 0x0000100F
137 #define LOCALE_SPOSITIVESIGN 0x00000050
138 #define LOCALE_SNEGATIVESIGN 0x00000051
139 #define LOCALE_IPOSSIGNPOSN 0x00000052
140 #define LOCALE_INEGSIGNPOSN 0x00000053
141 #define LOCALE_IPOSSYMPRECEDES 0x00000054
142 #define LOCALE_IPOSSEPBYSPACE 0x00000055
143 #define LOCALE_INEGSYMPRECEDES 0x00000056
144 #define LOCALE_INEGSEPBYSPACE 0x00000057
145 #define LOCALE_FONTSIGNATURE 0x00000058
146 #define LOCALE_SISO639LANGNAME 0x00000059
147 #define LOCALE_SISO3166CTRYNAME 0x0000005A
149 #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x00001012
150 #define LOCALE_IPAPERSIZE 0x0000100A
151 #define LOCALE_SENGCURRNAME 0x00001007
152 #define LOCALE_SNATIVECURRNAME 0x00001008
153 #define LOCALE_SYEARMONTH 0x00001006
154 #define LOCALE_SSORTNAME 0x00001013
155 #define LOCALE_IDIGITSUBSTITUTION 0x00001014
157 #define NORM_IGNORECASE 1
158 #define NORM_IGNORENONSPACE 2
159 #define NORM_IGNORESYMBOLS 4
160 #define NORM_STRINGSORT 0x1000
161 #define NORM_IGNOREKANATYPE 0x00010000
162 #define NORM_IGNOREWIDTH 0x00020000
164 #define CP_ACP 0
165 #define CP_OEMCP 1
166 #define CP_MACCP 2
167 #define CP_THREAD_ACP 3
168 #define CP_SYMBOL 42
169 #define CP_UTF7 65000
170 #define CP_UTF8 65001
172 #define WC_DISCARDNS 0x00000010
173 #define WC_SEPCHARS 0x00000020
174 #define WC_DEFAULTCHAR 0x00000040
175 #define WC_COMPOSITECHECK 0x00000200
176 #define WC_NO_BEST_FIT_CHARS 0x00000400
179 /* Locale Dependent Mapping Flags */
180 #define LCMAP_LOWERCASE 0x00000100 /* lower case letters */
181 #define LCMAP_UPPERCASE 0x00000200 /* upper case letters */
182 #define LCMAP_SORTKEY 0x00000400 /* WC sort key (normalize) */
183 #define LCMAP_BYTEREV 0x00000800 /* byte reversal */
185 #define SORT_STRINGSORT 0x00001000 /* take punctuation into account */
187 #define LCMAP_HIRAGANA 0x00100000 /* map katakana to hiragana */
188 #define LCMAP_KATAKANA 0x00200000 /* map hiragana to katakana */
189 #define LCMAP_HALFWIDTH 0x00400000 /* map double byte to single byte */
190 #define LCMAP_FULLWIDTH 0x00800000 /* map single byte to double byte */
192 /* Date Flags for GetDateFormat. */
194 #define DATE_SHORTDATE 0x00000001 /* use short date picture */
195 #define DATE_LONGDATE 0x00000002 /* use long date picture */
196 #define DATE_USE_ALT_CALENDAR 0x00000004 /* use alternate calendar */
197 /* alt. calendar support is broken anyway */
199 #define TIME_FORCE24HOURFORMAT 0x00000008 /* force 24 hour format*/
200 #define TIME_NOTIMEMARKER 0x00000004 /* show no AM/PM */
201 #define TIME_NOSECONDS 0x00000002 /* show no seconds */
202 #define TIME_NOMINUTESORSECONDS 0x0000001 /* show no minutes either */
204 /* internal flags for GetDateFormat system */
205 #define DATE_DATEVARSONLY 0x00000100 /* only date stuff: yMdg */
206 #define TIME_TIMEVARSONLY 0x00000200 /* only time stuff: hHmst */
207 /* use this in a Winelib program if you really want all types */
208 #define LOCALE_TIMEDATEBOTH 0x00000300 /* full set */
210 /* Tests that we currently implement */
211 #define ITU_IMPLEMENTED_TESTS \
212 IS_TEXT_UNICODE_SIGNATURE| \
213 IS_TEXT_UNICODE_ODD_LENGTH
216 /* Character Type Flags */
217 #define CT_CTYPE1 0x00000001 /* usual ctype */
218 #define CT_CTYPE2 0x00000002 /* bidirectional layout info */
219 #define CT_CTYPE3 0x00000004 /* textprocessing info */
221 /* CType 1 Flag Bits */
222 #define C1_UPPER 0x0001
223 #define C1_LOWER 0x0002
224 #define C1_DIGIT 0x0004
225 #define C1_SPACE 0x0008
226 #define C1_PUNCT 0x0010
227 #define C1_CNTRL 0x0020
228 #define C1_BLANK 0x0040
229 #define C1_XDIGIT 0x0080
230 #define C1_ALPHA 0x0100
232 /* CType 2 Flag Bits */
233 #define C2_LEFTTORIGHT 0x0001
234 #define C2_RIGHTTOLEFT 0x0002
235 #define C2_EUROPENUMBER 0x0003
236 #define C2_EUROPESEPARATOR 0x0004
237 #define C2_EUROPETERMINATOR 0x0005
238 #define C2_ARABICNUMBER 0x0006
239 #define C2_COMMONSEPARATOR 0x0007
240 #define C2_BLOCKSEPARATOR 0x0008
241 #define C2_SEGMENTSEPARATOR 0x0009
242 #define C2_WHITESPACE 0x000A
243 #define C2_OTHERNEUTRAL 0x000B
244 #define C2_NOTAPPLICABLE 0x0000
246 /* CType 3 Flag Bits */
247 #define C3_NONSPACING 0x0001
248 #define C3_DIACRITIC 0x0002
249 #define C3_VOWELMARK 0x0004
250 #define C3_SYMBOL 0x0008
251 #define C3_KATAKANA 0x0010
252 #define C3_HIRAGANA 0x0020
253 #define C3_HALFWIDTH 0x0040
254 #define C3_FULLWIDTH 0x0080
255 #define C3_IDEOGRAPH 0x0100
256 #define C3_KASHIDA 0x0200
257 #define C3_LEXICAL 0x0400
258 #define C3_ALPHA 0x8000
259 #define C3_NOTAPPLICABLE 0x0000
261 /* Code page information.
263 #define MAX_LEADBYTES 12
264 #define MAX_DEFAULTCHAR 2
266 /* Defines for calendar handling */
267 #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE
268 #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP
269 #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER
270 #define CAL_ICALINTVALUE 0x00000001
271 #define CAL_SCALNAME 0x00000002
272 #define CAL_IYEAROFFSETRANGE 0x00000003
273 #define CAL_SERASTRING 0x00000004
274 #define CAL_SSHORTDATE 0x00000005
275 #define CAL_SLONGDATE 0x00000006
276 #define CAL_SDAYNAME1 0x00000007
277 #define CAL_SDAYNAME2 0x00000008
278 #define CAL_SDAYNAME3 0x00000009
279 #define CAL_SDAYNAME4 0x0000000a
280 #define CAL_SDAYNAME5 0x0000000b
281 #define CAL_SDAYNAME6 0x0000000c
282 #define CAL_SDAYNAME7 0x0000000d
283 #define CAL_SABBREVDAYNAME1 0x0000000e
284 #define CAL_SABBREVDAYNAME2 0x0000000f
285 #define CAL_SABBREVDAYNAME3 0x00000010
286 #define CAL_SABBREVDAYNAME4 0x00000011
287 #define CAL_SABBREVDAYNAME5 0x00000012
288 #define CAL_SABBREVDAYNAME6 0x00000013
289 #define CAL_SABBREVDAYNAME7 0x00000014
290 #define CAL_SMONTHNAME1 0x00000015
291 #define CAL_SMONTHNAME2 0x00000016
292 #define CAL_SMONTHNAME3 0x00000017
293 #define CAL_SMONTHNAME4 0x00000018
294 #define CAL_SMONTHNAME5 0x00000019
295 #define CAL_SMONTHNAME6 0x0000001a
296 #define CAL_SMONTHNAME7 0x0000001b
297 #define CAL_SMONTHNAME8 0x0000001c
298 #define CAL_SMONTHNAME9 0x0000001d
299 #define CAL_SMONTHNAME10 0x0000001e
300 #define CAL_SMONTHNAME11 0x0000001f
301 #define CAL_SMONTHNAME12 0x00000020
302 #define CAL_SMONTHNAME13 0x00000021
303 #define CAL_SABBREVMONTHNAME1 0x00000022
304 #define CAL_SABBREVMONTHNAME2 0x00000023
305 #define CAL_SABBREVMONTHNAME3 0x00000024
306 #define CAL_SABBREVMONTHNAME4 0x00000025
307 #define CAL_SABBREVMONTHNAME5 0x00000026
308 #define CAL_SABBREVMONTHNAME6 0x00000027
309 #define CAL_SABBREVMONTHNAME7 0x00000028
310 #define CAL_SABBREVMONTHNAME8 0x00000029
311 #define CAL_SABBREVMONTHNAME9 0x0000002a
312 #define CAL_SABBREVMONTHNAME10 0x0000002b
313 #define CAL_SABBREVMONTHNAME11 0x0000002c
314 #define CAL_SABBREVMONTHNAME12 0x0000002d
315 #define CAL_SABBREVMONTHNAME13 0x0000002e
316 #define CAL_SYEARMONTH 0x0000002f
317 #define CAL_ITWODIGITYEARMAX 0x00000030
318 #define CAL_GREGORIAN 1
319 #define CAL_GREGORIAN_US 2
320 #define CAL_JAPAN 3
321 #define CAL_TAIWAN 4
322 #define CAL_KOREA 5
323 #define CAL_HIJRI 6
324 #define CAL_THAI 7
325 #define CAL_HEBREW 8
326 #define CAL_GREGORIAN_ME_FRENCH 9
327 #define CAL_GREGORIAN_ARABIC 10
328 #define CAL_GREGORIAN_XLIT_ENGLISH 11
329 #define CAL_GREGORIAN_XLIT_FRENCH 12
331 /* CompareString defines */
332 #define CSTR_LESS_THAN 1
333 #define CSTR_EQUAL 2
334 #define CSTR_GREATER_THAN 3
336 /* Types
339 typedef DWORD LCTYPE;
340 typedef DWORD CALTYPE;
341 typedef DWORD CALID;
343 typedef struct
345 UINT MaxCharSize;
346 BYTE DefaultChar[MAX_DEFAULTCHAR];
347 BYTE LeadByte[MAX_LEADBYTES];
348 } CPINFO, *LPCPINFO;
350 typedef struct
352 UINT MaxCharSize;
353 BYTE DefaultChar[MAX_DEFAULTCHAR];
354 BYTE LeadByte[MAX_LEADBYTES];
355 WCHAR UnicodeDefaultChar;
356 UINT CodePage;
357 CHAR CodePageName[MAX_PATH];
358 } CPINFOEXA, *LPCPINFOEXA;
360 typedef struct
362 UINT MaxCharSize;
363 BYTE DefaultChar[MAX_DEFAULTCHAR];
364 BYTE LeadByte[MAX_LEADBYTES];
365 WCHAR UnicodeDefaultChar;
366 UINT CodePage;
367 WCHAR CodePageName[MAX_PATH];
368 } CPINFOEXW, *LPCPINFOEXW;
370 DECL_WINELIB_TYPE_AW(CPINFOEX)
371 DECL_WINELIB_TYPE_AW(LPCPINFOEX)
373 typedef struct _numberfmtA {
374 UINT NumDigits;
375 UINT LeadingZero;
376 UINT Grouping;
377 LPSTR lpDecimalSep;
378 LPSTR lpThousandSep;
379 UINT NegativeOrder;
380 } NUMBERFMTA, *LPNUMBERFMTA;
382 typedef struct _numberfmtW {
383 UINT NumDigits;
384 UINT LeadingZero;
385 UINT Grouping;
386 LPWSTR lpDecimalSep;
387 LPWSTR lpThousandSep;
388 UINT NegativeOrder;
389 } NUMBERFMTW, *LPNUMBERFMTW;
391 DECL_WINELIB_TYPE_AW(NUMBERFMT)
392 DECL_WINELIB_TYPE_AW(LPNUMBERFMT)
394 typedef struct _currencyfmtA
396 UINT NumDigits;
397 UINT LeadingZero;
398 UINT Grouping;
399 LPSTR lpDecimalSep;
400 LPSTR lpThousandSep;
401 UINT NegativeOrder;
402 UINT PositiveOrder;
403 LPSTR lpCurrencySymbol;
404 } CURRENCYFMTA, *LPCURRENCYFMTA;
406 typedef struct _currencyfmtW
408 UINT NumDigits;
409 UINT LeadingZero;
410 UINT Grouping;
411 LPWSTR lpDecimalSep;
412 LPWSTR lpThousandSep;
413 UINT NegativeOrder;
414 UINT PositiveOrder;
415 LPWSTR lpCurrencySymbol;
416 } CURRENCYFMTW, *LPCURRENCYFMTW;
418 DECL_WINELIB_TYPE_AW(CURRENCYFMT)
419 DECL_WINELIB_TYPE_AW(LPCURRENCYFMT)
422 /* Define a bunch of callback types */
424 #if defined(STRICT) || defined(__WINE__)
425 typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR);
426 typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR);
427 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR,CALID);
428 typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR,CALID);
429 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR);
430 typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR);
431 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR);
432 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR);
433 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR,CALID);
434 typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID);
435 typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR);
436 typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR);
437 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR);
438 typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR);
439 #else
440 typedef FARPROC CALINFO_ENUMPROCA;
441 typedef FARPROC CALINFO_ENUMPROCW;
442 typedef FARPROC CALINFO_ENUMPROCEXA;
443 typedef FARPROC CALINFO_ENUMPROCEXW;
444 typedef FARPROC CODEPAGE_ENUMPROCA;
445 typedef FARPROC CODEPAGE_ENUMPROCW;
446 typedef FARPROC DATEFMT_ENUMPROCA;
447 typedef FARPROC DATEFMT_ENUMPROCW;
448 typedef FARPROC DATEFMT_ENUMPROCEXA;
449 typedef FARPROC DATEFMT_ENUMPROCEXW;
450 typedef FARPROC LOCALE_ENUMPROCA;
451 typedef FARPROC LOCALE_ENUMPROCW;
452 typedef FARPROC TIMEFMT_ENUMPROCA;
453 typedef FARPROC TIMEFMT_ENUMPROCW;
454 #endif /* STRICT || __WINE__ */
456 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC)
457 DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROCEX)
458 DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC)
459 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC)
460 DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROCEX)
461 DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC)
462 DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC)
465 /* APIs
468 int WINAPI CompareStringA(LCID,DWORD,LPCSTR,int,LPCSTR,int);
469 int WINAPI CompareStringW(LCID,DWORD,LPCWSTR,int,LPCWSTR,int);
470 #define CompareString WINELIB_NAME_AW(CompareString)
471 LCID WINAPI ConvertDefaultLocale(LCID);
472 BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE);
473 BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE);
474 #define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo)
475 BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE);
476 BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE);
477 #define EnumCalendarInfoEx WINELIB_NAME_AW(EnumCalendarInfoEx)
478 BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD);
479 BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD);
480 #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats)
481 BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD);
482 BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD);
483 #define EnumDateFormatsEx WINELIB_NAME_AW(EnumDateFormatsEx)
484 BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD);
485 BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD);
486 #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages)
487 BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD);
488 BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD);
489 #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales)
490 BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD);
491 BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD);
492 #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats)
493 int WINAPI FoldStringA(DWORD,LPCSTR,int,LPSTR,int);
494 int WINAPI FoldStringW(DWORD,LPCWSTR,int,LPWSTR,int);
495 #define FoldString WINELIB_NAME_AW(FoldString)
496 UINT WINAPI GetACP(void);
497 BOOL WINAPI GetCPInfo(UINT,LPCPINFO);
498 BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA);
499 BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW);
500 #define GetCPInfoEx WINELIB_NAME_AW(GetCPInfoEx)
501 int WINAPI GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD);
502 int WINAPI GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD);
503 #define GetCalendarInfo WINELIB_NAME_AW(GetCalendarInfo)
504 INT WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,int);
505 INT WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,int);
506 #define GetCurrencyFormat WINELIB_NAME_AW(GetCurrencyFormat)
507 INT WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
508 INT WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
509 #define GetDateFormat WINELIB_NAME_AW(GetDateFormat)
510 INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT);
511 INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT);
512 #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo)
513 INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
514 INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
515 #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat)
516 UINT WINAPI GetOEMCP(void);
517 BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD);
518 BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
519 BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD);
520 BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
521 #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx)
522 LANGID WINAPI GetSystemDefaultLangID(void);
523 LCID WINAPI GetSystemDefaultLCID(void);
524 LANGID WINAPI GetSystemDefaultUILanguage(void);
525 LCID WINAPI GetThreadLocale(void);
526 INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT);
527 INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT);
528 #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat)
529 LANGID WINAPI GetUserDefaultLangID(void);
530 LCID WINAPI GetUserDefaultLCID(void);
531 LANGID WINAPI GetUserDefaultUILanguage(void);
532 BOOL WINAPI IsDBCSLeadByte(BYTE);
533 BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE);
534 BOOL WINAPI IsValidCodePage(UINT);
535 BOOL WINAPI IsValidLocale(LCID,DWORD);
536 INT WINAPI LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT);
537 INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT);
538 #define LCMapString WINELIB_NAME_AW(LCMapString)
539 INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT);
540 BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR);
541 BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR);
542 #define SetLocaleInfo WINELIB_NAME_AW(SetLocaleInfo)
543 BOOL WINAPI SetThreadLocale(LCID);
544 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL);
546 #ifdef __cplusplus
548 #endif
550 #endif /* !NONLS */
551 #endif /* __WINE_WINNLS_H */