Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) the Wine project |
| 3 | * |
| 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. |
| 8 | * |
| 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. |
| 13 | * |
| 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 |
| 17 | */ |
| 18 | |
Alexandre Julliard | ade697e | 1995-11-26 13:59:11 +0000 | [diff] [blame] | 19 | #ifndef __WINE_WINNLS_H |
| 20 | #define __WINE_WINNLS_H |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 21 | #ifndef NONLS |
Alexandre Julliard | ade697e | 1995-11-26 13:59:11 +0000 | [diff] [blame] | 22 | |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 23 | #ifdef __cplusplus |
| 24 | extern "C" { |
| 25 | #endif |
Michael Veksler | 17822f4 | 1999-02-09 15:46:25 +0000 | [diff] [blame] | 26 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 27 | /* Country codes */ |
| 28 | #define CTRY_DEFAULT (0) |
| 29 | #define CTRY_ALBANIA (355) |
| 30 | #define CTRY_ALGERIA (213) |
| 31 | #define CTRY_ARGENTINA (54) |
| 32 | #define CTRY_ARMENIA (374) |
| 33 | #define CTRY_AUSTRALIA (61) |
| 34 | #define CTRY_AUSTRIA (43) |
| 35 | #define CTRY_AZERBAIJAN (994) |
| 36 | #define CTRY_BAHRAIN (973) |
| 37 | #define CTRY_BELARUS (375) |
| 38 | #define CTRY_BELGIUM (32) |
| 39 | #define CTRY_BELIZE (501) |
| 40 | #define CTRY_BOLIVIA (591) |
| 41 | #define CTRY_BRAZIL (55) |
| 42 | #define CTRY_BRUNEI_DARUSSALAM (673) |
| 43 | #define CTRY_BULGARIA (359) |
| 44 | #define CTRY_CANADA (2) |
| 45 | #define CTRY_CARIBBEAN (1) |
| 46 | #define CTRY_CHILE (56) |
| 47 | #define CTRY_COLOMBIA (57) |
| 48 | #define CTRY_COSTA_RICA (506) |
| 49 | #define CTRY_CROATIA (385) |
| 50 | #define CTRY_CZECH (420) |
| 51 | #define CTRY_DENMARK (45) |
| 52 | #define CTRY_DOMINICAN_REPUBLIC (1) |
| 53 | #define CTRY_ECUADOR (593) |
| 54 | #define CTRY_EGYPT (20) |
| 55 | #define CTRY_EL_SALVADOR (503) |
| 56 | #define CTRY_ESTONIA (372) |
| 57 | #define CTRY_FAEROE_ISLANDS (298) |
| 58 | #define CTRY_FINLAND (358) |
| 59 | #define CTRY_FRANCE (33) |
| 60 | #define CTRY_GEORGIA (995) |
| 61 | #define CTRY_GERMANY (49) |
| 62 | #define CTRY_GREECE (30) |
| 63 | #define CTRY_GUATEMALA (502) |
| 64 | #define CTRY_HONDURAS (504) |
| 65 | #define CTRY_HONG_KONG (852) |
| 66 | #define CTRY_HUNGARY (36) |
| 67 | #define CTRY_ICELAND (354) |
| 68 | #define CTRY_INDIA (91) |
| 69 | #define CTRY_INDONESIA (62) |
| 70 | #define CTRY_IRAN (981) |
| 71 | #define CTRY_IRAQ (964) |
| 72 | #define CTRY_IRELAND (353) |
| 73 | #define CTRY_ISRAEL (972) |
| 74 | #define CTRY_ITALY (39) |
| 75 | #define CTRY_JAMAICA (1) |
| 76 | #define CTRY_JAPAN (81) |
| 77 | #define CTRY_JORDAN (962) |
| 78 | #define CTRY_KAZAKSTAN (7) |
| 79 | #define CTRY_KENYA (254) |
| 80 | #define CTRY_KUWAIT (965) |
| 81 | #define CTRY_KYRGYZSTAN (996) |
| 82 | #define CTRY_LATVIA (371) |
| 83 | #define CTRY_LEBANON (961) |
| 84 | #define CTRY_LIBYA (218) |
| 85 | #define CTRY_LIECHTENSTEIN (41) |
| 86 | #define CTRY_LITHUANIA (370) |
| 87 | #define CTRY_LUXEMBOURG (352) |
| 88 | #define CTRY_MACAU (853) |
| 89 | #define CTRY_MACEDONIA (389) |
| 90 | #define CTRY_MALAYSIA (60) |
| 91 | #define CTRY_MALDIVES (960) |
| 92 | #define CTRY_MEXICO (52) |
| 93 | #define CTRY_MONACO (33) |
| 94 | #define CTRY_MONGOLIA (976) |
| 95 | #define CTRY_MOROCCO (212) |
| 96 | #define CTRY_NETHERLANDS (31) |
| 97 | #define CTRY_NEW_ZEALAND (64) |
| 98 | #define CTRY_NICARAGUA (505) |
| 99 | #define CTRY_NORWAY (47) |
| 100 | #define CTRY_OMAN (968) |
| 101 | #define CTRY_PAKISTAN (92) |
| 102 | #define CTRY_PANAMA (507) |
| 103 | #define CTRY_PARAGUAY (595) |
| 104 | #define CTRY_PERU (51) |
| 105 | #define CTRY_PHILIPPINES (63) |
| 106 | #define CTRY_POLAND (48) |
| 107 | #define CTRY_PORTUGAL (351) |
| 108 | #define CTRY_PRCHINA (86) |
| 109 | #define CTRY_PUERTO_RICO (1) |
| 110 | #define CTRY_QATAR (974) |
| 111 | #define CTRY_ROMANIA (40) |
| 112 | #define CTRY_RUSSIA (7) |
| 113 | #define CTRY_SAUDI_ARABIA (966) |
| 114 | #define CTRY_SERBIA (381) |
| 115 | #define CTRY_SINGAPORE (65) |
| 116 | #define CTRY_SLOVAK (421) |
| 117 | #define CTRY_SLOVENIA (386) |
| 118 | #define CTRY_SOUTH_AFRICA (27) |
| 119 | #define CTRY_SOUTH_KOREA (82) |
| 120 | #define CTRY_SPAIN (34) |
| 121 | #define CTRY_SWEDEN (46) |
| 122 | #define CTRY_SWITZERLAND (41) |
| 123 | #define CTRY_SYRIA (963) |
| 124 | #define CTRY_TAIWAN (886) |
| 125 | #define CTRY_TATARSTAN (7) |
| 126 | #define CTRY_THAILAND (66) |
| 127 | #define CTRY_TRINIDAD_Y_TOBAGO (1) |
| 128 | #define CTRY_TUNISIA (216) |
| 129 | #define CTRY_TURKEY (90) |
| 130 | #define CTRY_UAE (971) |
| 131 | #define CTRY_UKRAINE (380) |
| 132 | #define CTRY_UNITED_KINGDOM (44) |
| 133 | #define CTRY_UNITED_STATES (1) |
| 134 | #define CTRY_URUGUAY (598) |
| 135 | #define CTRY_UZBEKISTAN (7) |
| 136 | #define CTRY_VENEZUELA (58) |
| 137 | #define CTRY_VIET_NAM (84) |
| 138 | #define CTRY_YEMEN (967) |
| 139 | #define CTRY_ZIMBABWE (263) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 140 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 141 | #define MB_PRECOMPOSED 0x01 |
| 142 | #define MB_COMPOSITE 0x02 |
| 143 | #define MB_USEGLYPHCHARS 0x04 |
| 144 | #define MB_ERR_INVALID_CHARS 0x08 |
Jim Aston | 10141fe | 1999-04-25 12:31:20 +0000 | [diff] [blame] | 145 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 146 | #define LGRPID_INSTALLED 0x1 |
| 147 | #define LGRPID_SUPPORTED 0x2 |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 148 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 149 | #define LCID_INSTALLED 0x1 |
| 150 | #define LCID_SUPPORTED 0x2 |
| 151 | #define LCID_ALTERNATE_SORTS 0x4 |
Jim Aston | 10141fe | 1999-04-25 12:31:20 +0000 | [diff] [blame] | 152 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 153 | /* Locale flags */ |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 154 | #define LOCALE_NOUSEROVERRIDE 0x80000000 |
| 155 | #define LOCALE_USE_CP_ACP 0x40000000 |
Vincent Béron | 736e81c | 2002-05-14 21:44:07 +0000 | [diff] [blame] | 156 | #define LOCALE_RETURN_NUMBER 0x20000000 |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 157 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 158 | /* Locale information types */ |
| 159 | #define LOCALE_ILANGUAGE 0x0001 |
| 160 | #define LOCALE_SLANGUAGE 0x0002 |
| 161 | #define LOCALE_SENGLANGUAGE 0x1001 |
| 162 | #define LOCALE_SABBREVLANGNAME 0x0003 |
| 163 | #define LOCALE_SNATIVELANGNAME 0x0004 |
| 164 | #define LOCALE_ICOUNTRY 0x0005 |
| 165 | #define LOCALE_SCOUNTRY 0x0006 |
| 166 | #define LOCALE_SENGCOUNTRY 0x1002 |
| 167 | #define LOCALE_SABBREVCTRYNAME 0x0007 |
| 168 | #define LOCALE_SNATIVECTRYNAME 0x0008 |
| 169 | #define LOCALE_IDEFAULTLANGUAGE 0x0009 |
| 170 | #define LOCALE_IDEFAULTCOUNTRY 0x000A |
| 171 | #define LOCALE_IDEFAULTCODEPAGE 0x000B |
| 172 | #define LOCALE_IDEFAULTANSICODEPAGE 0x1004 |
| 173 | #define LOCALE_IDEFAULTMACCODEPAGE 0x1011 |
| 174 | #define LOCALE_SLIST 0x000C |
| 175 | #define LOCALE_IMEASURE 0x000D |
| 176 | #define LOCALE_SDECIMAL 0x000E |
| 177 | #define LOCALE_STHOUSAND 0x000F |
| 178 | #define LOCALE_SGROUPING 0x0010 |
| 179 | #define LOCALE_IDIGITS 0x0011 |
| 180 | #define LOCALE_ILZERO 0x0012 |
| 181 | #define LOCALE_INEGNUMBER 0x1010 |
| 182 | #define LOCALE_SNATIVEDIGITS 0x0013 |
| 183 | #define LOCALE_SCURRENCY 0x0014 |
| 184 | #define LOCALE_SINTLSYMBOL 0x0015 |
| 185 | #define LOCALE_SMONDECIMALSEP 0x0016 |
| 186 | #define LOCALE_SMONTHOUSANDSEP 0x0017 |
| 187 | #define LOCALE_SMONGROUPING 0x0018 |
| 188 | #define LOCALE_ICURRDIGITS 0x0019 |
| 189 | #define LOCALE_IINTLCURRDIGITS 0x001A |
| 190 | #define LOCALE_ICURRENCY 0x001B |
| 191 | #define LOCALE_INEGCURR 0x001C |
| 192 | #define LOCALE_SDATE 0x001D |
| 193 | #define LOCALE_STIME 0x001E |
| 194 | #define LOCALE_SSHORTDATE 0x001F |
| 195 | #define LOCALE_SLONGDATE 0x0020 |
| 196 | #define LOCALE_STIMEFORMAT 0x1003 |
| 197 | #define LOCALE_IDATE 0x0021 |
| 198 | #define LOCALE_ILDATE 0x0022 |
| 199 | #define LOCALE_ITIME 0x0023 |
| 200 | #define LOCALE_ITIMEMARKPOSN 0x1005 |
| 201 | #define LOCALE_ICENTURY 0x0024 |
| 202 | #define LOCALE_ITLZERO 0x0025 |
| 203 | #define LOCALE_IDAYLZERO 0x0026 |
| 204 | #define LOCALE_IMONLZERO 0x0027 |
| 205 | #define LOCALE_S1159 0x0028 |
| 206 | #define LOCALE_S2359 0x0029 |
| 207 | #define LOCALE_ICALENDARTYPE 0x1009 |
| 208 | #define LOCALE_IOPTIONALCALENDAR 0x100B |
| 209 | #define LOCALE_IFIRSTDAYOFWEEK 0x100C |
| 210 | #define LOCALE_IFIRSTWEEKOFYEAR 0x100D |
| 211 | #define LOCALE_SDAYNAME1 0x002A |
| 212 | #define LOCALE_SDAYNAME2 0x002B |
| 213 | #define LOCALE_SDAYNAME3 0x002C |
| 214 | #define LOCALE_SDAYNAME4 0x002D |
| 215 | #define LOCALE_SDAYNAME5 0x002E |
| 216 | #define LOCALE_SDAYNAME6 0x002F |
| 217 | #define LOCALE_SDAYNAME7 0x0030 |
| 218 | #define LOCALE_SABBREVDAYNAME1 0x0031 |
| 219 | #define LOCALE_SABBREVDAYNAME2 0x0032 |
| 220 | #define LOCALE_SABBREVDAYNAME3 0x0033 |
| 221 | #define LOCALE_SABBREVDAYNAME4 0x0034 |
| 222 | #define LOCALE_SABBREVDAYNAME5 0x0035 |
| 223 | #define LOCALE_SABBREVDAYNAME6 0x0036 |
| 224 | #define LOCALE_SABBREVDAYNAME7 0x0037 |
| 225 | #define LOCALE_SMONTHNAME1 0x0038 |
| 226 | #define LOCALE_SMONTHNAME2 0x0039 |
| 227 | #define LOCALE_SMONTHNAME3 0x003A |
| 228 | #define LOCALE_SMONTHNAME4 0x003B |
| 229 | #define LOCALE_SMONTHNAME5 0x003C |
| 230 | #define LOCALE_SMONTHNAME6 0x003D |
| 231 | #define LOCALE_SMONTHNAME7 0x003E |
| 232 | #define LOCALE_SMONTHNAME8 0x003F |
| 233 | #define LOCALE_SMONTHNAME9 0x0040 |
| 234 | #define LOCALE_SMONTHNAME10 0x0041 |
| 235 | #define LOCALE_SMONTHNAME11 0x0042 |
| 236 | #define LOCALE_SMONTHNAME12 0x0043 |
| 237 | #define LOCALE_SMONTHNAME13 0x100E |
| 238 | #define LOCALE_SABBREVMONTHNAME1 0x0044 |
| 239 | #define LOCALE_SABBREVMONTHNAME2 0x0045 |
| 240 | #define LOCALE_SABBREVMONTHNAME3 0x0046 |
| 241 | #define LOCALE_SABBREVMONTHNAME4 0x0047 |
| 242 | #define LOCALE_SABBREVMONTHNAME5 0x0048 |
| 243 | #define LOCALE_SABBREVMONTHNAME6 0x0049 |
| 244 | #define LOCALE_SABBREVMONTHNAME7 0x004A |
| 245 | #define LOCALE_SABBREVMONTHNAME8 0x004B |
| 246 | #define LOCALE_SABBREVMONTHNAME9 0x004C |
| 247 | #define LOCALE_SABBREVMONTHNAME10 0x004D |
| 248 | #define LOCALE_SABBREVMONTHNAME11 0x004E |
| 249 | #define LOCALE_SABBREVMONTHNAME12 0x004F |
| 250 | #define LOCALE_SABBREVMONTHNAME13 0x100F |
| 251 | #define LOCALE_SPOSITIVESIGN 0x0050 |
| 252 | #define LOCALE_SNEGATIVESIGN 0x0051 |
| 253 | #define LOCALE_IPOSSIGNPOSN 0x0052 |
| 254 | #define LOCALE_INEGSIGNPOSN 0x0053 |
| 255 | #define LOCALE_IPOSSYMPRECEDES 0x0054 |
| 256 | #define LOCALE_IPOSSEPBYSPACE 0x0055 |
| 257 | #define LOCALE_INEGSYMPRECEDES 0x0056 |
| 258 | #define LOCALE_INEGSEPBYSPACE 0x0057 |
| 259 | #define LOCALE_FONTSIGNATURE 0x0058 |
| 260 | #define LOCALE_SISO639LANGNAME 0x0059 |
| 261 | #define LOCALE_SISO3166CTRYNAME 0x005A |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 262 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 263 | #define LOCALE_IDEFAULTEBCDICCODEPAGE 0x1012 |
| 264 | #define LOCALE_IPAPERSIZE 0x100A |
| 265 | #define LOCALE_SENGCURRNAME 0x1007 |
| 266 | #define LOCALE_SNATIVECURRNAME 0x1008 |
| 267 | #define LOCALE_SYEARMONTH 0x1006 |
| 268 | #define LOCALE_SSORTNAME 0x1013 |
| 269 | #define LOCALE_IDIGITSUBSTITUTION 0x1014 |
Alexandre Julliard | bd34d4f | 1995-06-20 19:08:12 +0000 | [diff] [blame] | 270 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 271 | #define LOCALE_IDEFAULTUNIXCODEPAGE 0x1030 /* Wine extension */ |
Alexandre Julliard | 9747a10 | 2003-05-20 02:20:48 +0000 | [diff] [blame] | 272 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 273 | #define NORM_IGNORECASE 0x00001 |
| 274 | #define NORM_IGNORENONSPACE 0x00002 |
| 275 | #define NORM_IGNORESYMBOLS 0x00004 |
| 276 | #define NORM_STRINGSORT 0x01000 |
| 277 | #define NORM_IGNOREKANATYPE 0x10000 |
| 278 | #define NORM_IGNOREWIDTH 0x20000 |
Alexandre Julliard | ade697e | 1995-11-26 13:59:11 +0000 | [diff] [blame] | 279 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 280 | #define CP_ACP 0 |
| 281 | #define CP_OEMCP 1 |
| 282 | #define CP_MACCP 2 |
| 283 | #define CP_THREAD_ACP 3 |
| 284 | #define CP_SYMBOL 42 |
| 285 | #define CP_UTF7 65000 |
| 286 | #define CP_UTF8 65001 |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 287 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 288 | #define CP_UNIXCP 65010 /* Wine extension */ |
Dmitry Timoshkov | 8a8d1b9 | 2003-07-09 04:22:57 +0000 | [diff] [blame] | 289 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 290 | #define CP_INSTALLED 0x1 |
| 291 | #define CP_SUPPORTED 0x2 |
| 292 | |
| 293 | #define WC_DISCARDNS 0x0010 |
| 294 | #define WC_SEPCHARS 0x0020 |
| 295 | #define WC_DEFAULTCHAR 0x0040 |
| 296 | #define WC_COMPOSITECHECK 0x0200 |
| 297 | #define WC_NO_BEST_FIT_CHARS 0x0400 |
| 298 | |
| 299 | #define MAP_FOLDCZONE 0x0010 |
| 300 | #define MAP_PRECOMPOSED 0x0020 |
| 301 | #define MAP_COMPOSITE 0x0040 |
| 302 | #define MAP_FOLDDIGITS 0x0080 |
| 303 | #define MAP_EXPAND_LIGATURES 0x2000 |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 304 | |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 305 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 306 | /* String mapping flags */ |
| 307 | #define LCMAP_LOWERCASE 0x00000100 /* Make lower-case */ |
| 308 | #define LCMAP_UPPERCASE 0x00000200 /* Make upper-case */ |
| 309 | #define LCMAP_SORTKEY 0x00000400 /* Create a sort key */ |
| 310 | #define LCMAP_BYTEREV 0x00000800 /* Reverse the result */ |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 311 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 312 | #define SORT_STRINGSORT 0x00001000 /* Take punctuation into account */ |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 313 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 314 | #define LCMAP_HIRAGANA 0x00100000 /* Transform Japanese katakana into hiragana */ |
| 315 | #define LCMAP_KATAKANA 0x00200000 /* Transform Japanese hiragana into katakana */ |
| 316 | #define LCMAP_HALFWIDTH 0x00400000 /* Use single byte chars in output */ |
| 317 | #define LCMAP_FULLWIDTH 0x00800000 /* Use double byte chars in output */ |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 318 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 319 | #define LCMAP_LINGUISTIC_CASING 0x01000000 /* Change case by using language context */ |
| 320 | #define LCMAP_SIMPLIFIED_CHINESE 0x02000000 /* Transform Chinese traditional into simplified */ |
| 321 | #define LCMAP_TRADITIONAL_CHINESE 0x04000000 /* Transform Chinese simplified into traditional */ |
Dmitry Timoshkov | 85d4281 | 2003-06-27 19:02:23 +0000 | [diff] [blame] | 322 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 323 | /* Date and time formatting flags */ |
| 324 | #define DATE_SHORTDATE 0x01 /* Short date format */ |
| 325 | #define DATE_LONGDATE 0x02 /* Long date format */ |
| 326 | #define DATE_USE_ALT_CALENDAR 0x04 /* Use an Alternate calendar */ |
| 327 | #define DATE_YEARMONTH 0x08 /* Year/month format */ |
| 328 | #define DATE_LTRREADING 0x10 /* Add LTR reading marks */ |
| 329 | #define DATE_RTLREADING 0x20 /* Add RTL reading marks */ |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 330 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 331 | #define TIME_FORCE24HOURFORMAT 0x08 /* Always use 24 hour clock */ |
| 332 | #define TIME_NOTIMEMARKER 0x04 /* show no AM/PM */ |
| 333 | #define TIME_NOSECONDS 0x02 /* show no seconds */ |
| 334 | #define TIME_NOMINUTESORSECONDS 0x01 /* show no minutes either */ |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 335 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 336 | /* Unicode char type flags */ |
| 337 | #define CT_CTYPE1 0x0001 /* usual ctype */ |
| 338 | #define CT_CTYPE2 0x0002 /* bidirectional layout info */ |
| 339 | #define CT_CTYPE3 0x0004 /* textprocessing info */ |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 340 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 341 | /* Type 1 flags */ |
Michael Veksler | 17822f4 | 1999-02-09 15:46:25 +0000 | [diff] [blame] | 342 | #define C1_UPPER 0x0001 |
| 343 | #define C1_LOWER 0x0002 |
| 344 | #define C1_DIGIT 0x0004 |
| 345 | #define C1_SPACE 0x0008 |
| 346 | #define C1_PUNCT 0x0010 |
| 347 | #define C1_CNTRL 0x0020 |
| 348 | #define C1_BLANK 0x0040 |
| 349 | #define C1_XDIGIT 0x0080 |
| 350 | #define C1_ALPHA 0x0100 |
| 351 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 352 | /* Type 2 flags */ |
Michael Veksler | 17822f4 | 1999-02-09 15:46:25 +0000 | [diff] [blame] | 353 | #define C2_LEFTTORIGHT 0x0001 |
| 354 | #define C2_RIGHTTOLEFT 0x0002 |
| 355 | #define C2_EUROPENUMBER 0x0003 |
| 356 | #define C2_EUROPESEPARATOR 0x0004 |
| 357 | #define C2_EUROPETERMINATOR 0x0005 |
| 358 | #define C2_ARABICNUMBER 0x0006 |
| 359 | #define C2_COMMONSEPARATOR 0x0007 |
| 360 | #define C2_BLOCKSEPARATOR 0x0008 |
| 361 | #define C2_SEGMENTSEPARATOR 0x0009 |
| 362 | #define C2_WHITESPACE 0x000A |
| 363 | #define C2_OTHERNEUTRAL 0x000B |
| 364 | #define C2_NOTAPPLICABLE 0x0000 |
| 365 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 366 | /* Type 3 flags */ |
Michael Veksler | 17822f4 | 1999-02-09 15:46:25 +0000 | [diff] [blame] | 367 | #define C3_NONSPACING 0x0001 |
| 368 | #define C3_DIACRITIC 0x0002 |
| 369 | #define C3_VOWELMARK 0x0004 |
| 370 | #define C3_SYMBOL 0x0008 |
| 371 | #define C3_KATAKANA 0x0010 |
| 372 | #define C3_HIRAGANA 0x0020 |
| 373 | #define C3_HALFWIDTH 0x0040 |
| 374 | #define C3_FULLWIDTH 0x0080 |
| 375 | #define C3_IDEOGRAPH 0x0100 |
| 376 | #define C3_KASHIDA 0x0200 |
| 377 | #define C3_LEXICAL 0x0400 |
| 378 | #define C3_ALPHA 0x8000 |
| 379 | #define C3_NOTAPPLICABLE 0x0000 |
| 380 | |
Dmitry Timoshkov | d6a494f | 2000-02-25 21:36:27 +0000 | [diff] [blame] | 381 | /* Code page information. |
| 382 | */ |
| 383 | #define MAX_LEADBYTES 12 |
| 384 | #define MAX_DEFAULTCHAR 2 |
| 385 | |
Marcus Meissner | 8934496 | 2001-09-10 23:08:39 +0000 | [diff] [blame] | 386 | /* Defines for calendar handling */ |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 387 | #define CAL_NOUSEROVERRIDE LOCALE_NOUSEROVERRIDE |
| 388 | #define CAL_USE_CP_ACP LOCALE_USE_CP_ACP |
| 389 | #define CAL_RETURN_NUMBER LOCALE_RETURN_NUMBER |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 390 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 391 | #define CAL_ICALINTVALUE 0x01 |
| 392 | #define CAL_SCALNAME 0x02 |
| 393 | #define CAL_IYEAROFFSETRANGE 0x03 |
| 394 | #define CAL_SERASTRING 0x04 |
| 395 | #define CAL_SSHORTDATE 0x05 |
| 396 | #define CAL_SLONGDATE 0x06 |
| 397 | #define CAL_SDAYNAME1 0x07 |
| 398 | #define CAL_SDAYNAME2 0x08 |
| 399 | #define CAL_SDAYNAME3 0x09 |
| 400 | #define CAL_SDAYNAME4 0x0a |
| 401 | #define CAL_SDAYNAME5 0x0b |
| 402 | #define CAL_SDAYNAME6 0x0c |
| 403 | #define CAL_SDAYNAME7 0x0d |
| 404 | #define CAL_SABBREVDAYNAME1 0x0e |
| 405 | #define CAL_SABBREVDAYNAME2 0x0f |
| 406 | #define CAL_SABBREVDAYNAME3 0x10 |
| 407 | #define CAL_SABBREVDAYNAME4 0x11 |
| 408 | #define CAL_SABBREVDAYNAME5 0x12 |
| 409 | #define CAL_SABBREVDAYNAME6 0x13 |
| 410 | #define CAL_SABBREVDAYNAME7 0x14 |
| 411 | #define CAL_SMONTHNAME1 0x15 |
| 412 | #define CAL_SMONTHNAME2 0x16 |
| 413 | #define CAL_SMONTHNAME3 0x17 |
| 414 | #define CAL_SMONTHNAME4 0x18 |
| 415 | #define CAL_SMONTHNAME5 0x19 |
| 416 | #define CAL_SMONTHNAME6 0x1a |
| 417 | #define CAL_SMONTHNAME7 0x1b |
| 418 | #define CAL_SMONTHNAME8 0x1c |
| 419 | #define CAL_SMONTHNAME9 0x1d |
| 420 | #define CAL_SMONTHNAME10 0x1e |
| 421 | #define CAL_SMONTHNAME11 0x1f |
| 422 | #define CAL_SMONTHNAME12 0x20 |
| 423 | #define CAL_SMONTHNAME13 0x21 |
| 424 | #define CAL_SABBREVMONTHNAME1 0x22 |
| 425 | #define CAL_SABBREVMONTHNAME2 0x23 |
| 426 | #define CAL_SABBREVMONTHNAME3 0x24 |
| 427 | #define CAL_SABBREVMONTHNAME4 0x25 |
| 428 | #define CAL_SABBREVMONTHNAME5 0x26 |
| 429 | #define CAL_SABBREVMONTHNAME6 0x27 |
| 430 | #define CAL_SABBREVMONTHNAME7 0x28 |
| 431 | #define CAL_SABBREVMONTHNAME8 0x29 |
| 432 | #define CAL_SABBREVMONTHNAME9 0x2a |
| 433 | #define CAL_SABBREVMONTHNAME10 0x2b |
| 434 | #define CAL_SABBREVMONTHNAME11 0x2c |
| 435 | #define CAL_SABBREVMONTHNAME12 0x2d |
| 436 | #define CAL_SABBREVMONTHNAME13 0x2e |
| 437 | #define CAL_SYEARMONTH 0x2f |
| 438 | #define CAL_ITWODIGITYEARMAX 0x30 |
| 439 | |
| 440 | /* Calendar types */ |
| 441 | #define CAL_GREGORIAN 1 |
| 442 | #define CAL_GREGORIAN_US 2 |
| 443 | #define CAL_JAPAN 3 |
| 444 | #define CAL_TAIWAN 4 |
| 445 | #define CAL_KOREA 5 |
| 446 | #define CAL_HIJRI 6 |
| 447 | #define CAL_THAI 7 |
| 448 | #define CAL_HEBREW 8 |
| 449 | #define CAL_GREGORIAN_ME_FRENCH 9 |
| 450 | #define CAL_GREGORIAN_ARABIC 10 |
| 451 | #define CAL_GREGORIAN_XLIT_ENGLISH 11 |
| 452 | #define CAL_GREGORIAN_XLIT_FRENCH 12 |
| 453 | |
| 454 | /* EnumCalendarInfo Flags */ |
| 455 | #define ENUM_ALL_CALENDARS 0xffffffff /* Enumerate all calendars within a locale */ |
| 456 | |
| 457 | /* CompareString results */ |
| 458 | #define CSTR_LESS_THAN 1 |
| 459 | #define CSTR_EQUAL 2 |
| 460 | #define CSTR_GREATER_THAN 3 |
Ryan Cumming | 7e18d73 | 2002-11-04 22:39:45 +0000 | [diff] [blame] | 461 | |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 462 | /* |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 463 | * Language Group IDs. |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 464 | * Resources in kernel32 are LGRPID_xxx+0x2000 because low values were used by LOCALE_xxx |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 465 | * This is done because resources in win2k kernel32 / winxp kernel32 are not even |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 466 | * stored the same way. |
| 467 | */ |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 468 | #define LGRPID_WESTERN_EUROPE 0x01 /* Includes US and Africa */ |
| 469 | #define LGRPID_CENTRAL_EUROPE 0x02 |
| 470 | #define LGRPID_BALTIC 0x03 |
| 471 | #define LGRPID_GREEK 0x04 |
| 472 | #define LGRPID_CYRILLIC 0x05 |
| 473 | #define LGRPID_TURKISH 0x06 |
| 474 | #define LGRPID_JAPANESE 0x07 |
| 475 | #define LGRPID_KOREAN 0x08 |
| 476 | #define LGRPID_TRADITIONAL_CHINESE 0x09 |
| 477 | #define LGRPID_SIMPLIFIED_CHINESE 0x0A |
| 478 | #define LGRPID_THAI 0x0B |
| 479 | #define LGRPID_HEBREW 0x0C |
| 480 | #define LGRPID_ARABIC 0x0D |
| 481 | #define LGRPID_VIETNAMESE 0x0E |
| 482 | #define LGRPID_INDIC 0x0F |
| 483 | #define LGRPID_GEORGIAN 0x10 |
| 484 | #define LGRPID_ARMENIAN 0x11 |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 485 | |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 486 | /* Types |
| 487 | */ |
| 488 | |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 489 | typedef DWORD CALID; |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 490 | typedef DWORD CALTYPE; |
| 491 | typedef LONG GEOID; |
| 492 | typedef DWORD GEOCLASS; |
| 493 | typedef DWORD GEOTYPE; |
| 494 | typedef DWORD LCTYPE; |
| 495 | typedef DWORD LGRPID; |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 496 | |
Dmitry Timoshkov | d6a494f | 2000-02-25 21:36:27 +0000 | [diff] [blame] | 497 | typedef struct |
| 498 | { |
| 499 | UINT MaxCharSize; |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 500 | BYTE DefaultChar[MAX_DEFAULTCHAR]; |
| 501 | BYTE LeadByte[MAX_LEADBYTES]; |
Dmitry Timoshkov | d6a494f | 2000-02-25 21:36:27 +0000 | [diff] [blame] | 502 | } CPINFO, *LPCPINFO; |
| 503 | |
| 504 | typedef struct |
| 505 | { |
| 506 | UINT MaxCharSize; |
| 507 | BYTE DefaultChar[MAX_DEFAULTCHAR]; |
| 508 | BYTE LeadByte[MAX_LEADBYTES]; |
| 509 | WCHAR UnicodeDefaultChar; |
| 510 | UINT CodePage; |
| 511 | CHAR CodePageName[MAX_PATH]; |
| 512 | } CPINFOEXA, *LPCPINFOEXA; |
| 513 | |
| 514 | typedef struct |
| 515 | { |
| 516 | UINT MaxCharSize; |
| 517 | BYTE DefaultChar[MAX_DEFAULTCHAR]; |
| 518 | BYTE LeadByte[MAX_LEADBYTES]; |
| 519 | WCHAR UnicodeDefaultChar; |
| 520 | UINT CodePage; |
| 521 | WCHAR CodePageName[MAX_PATH]; |
| 522 | } CPINFOEXW, *LPCPINFOEXW; |
| 523 | |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 524 | DECL_WINELIB_TYPE_AW(CPINFOEX) |
| 525 | DECL_WINELIB_TYPE_AW(LPCPINFOEX) |
| 526 | |
| 527 | typedef struct _numberfmtA { |
| 528 | UINT NumDigits; |
| 529 | UINT LeadingZero; |
| 530 | UINT Grouping; |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 531 | LPSTR lpDecimalSep; |
| 532 | LPSTR lpThousandSep; |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 533 | UINT NegativeOrder; |
| 534 | } NUMBERFMTA, *LPNUMBERFMTA; |
| 535 | |
| 536 | typedef struct _numberfmtW { |
| 537 | UINT NumDigits; |
| 538 | UINT LeadingZero; |
| 539 | UINT Grouping; |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 540 | LPWSTR lpDecimalSep; |
| 541 | LPWSTR lpThousandSep; |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 542 | UINT NegativeOrder; |
| 543 | } NUMBERFMTW, *LPNUMBERFMTW; |
| 544 | |
| 545 | DECL_WINELIB_TYPE_AW(NUMBERFMT) |
| 546 | DECL_WINELIB_TYPE_AW(LPNUMBERFMT) |
| 547 | |
| 548 | typedef struct _currencyfmtA |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 549 | { |
| 550 | UINT NumDigits; |
| 551 | UINT LeadingZero; |
| 552 | UINT Grouping; |
| 553 | LPSTR lpDecimalSep; |
| 554 | LPSTR lpThousandSep; |
| 555 | UINT NegativeOrder; |
| 556 | UINT PositiveOrder; |
| 557 | LPSTR lpCurrencySymbol; |
| 558 | } CURRENCYFMTA, *LPCURRENCYFMTA; |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 559 | |
| 560 | typedef struct _currencyfmtW |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 561 | { |
| 562 | UINT NumDigits; |
| 563 | UINT LeadingZero; |
| 564 | UINT Grouping; |
| 565 | LPWSTR lpDecimalSep; |
| 566 | LPWSTR lpThousandSep; |
| 567 | UINT NegativeOrder; |
| 568 | UINT PositiveOrder; |
| 569 | LPWSTR lpCurrencySymbol; |
| 570 | } CURRENCYFMTW, *LPCURRENCYFMTW; |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 571 | |
| 572 | DECL_WINELIB_TYPE_AW(CURRENCYFMT) |
| 573 | DECL_WINELIB_TYPE_AW(LPCURRENCYFMT) |
| 574 | |
| 575 | |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 576 | /* Define a bunch of callback types */ |
| 577 | |
Dimitrie O. Paun | cef5961 | 2003-01-03 19:12:55 +0000 | [diff] [blame] | 578 | #if defined(STRICT) |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 579 | typedef BOOL (CALLBACK *CALINFO_ENUMPROCA)(LPSTR); |
| 580 | typedef BOOL (CALLBACK *CALINFO_ENUMPROCW)(LPWSTR); |
| 581 | typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXA)(LPSTR,CALID); |
| 582 | typedef BOOL (CALLBACK *CALINFO_ENUMPROCEXW)(LPWSTR,CALID); |
| 583 | typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCA)(LPSTR); |
| 584 | typedef BOOL (CALLBACK *CODEPAGE_ENUMPROCW)(LPWSTR); |
| 585 | typedef BOOL (CALLBACK *DATEFMT_ENUMPROCA)(LPSTR); |
| 586 | typedef BOOL (CALLBACK *DATEFMT_ENUMPROCW)(LPWSTR); |
| 587 | typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXA)(LPSTR,CALID); |
| 588 | typedef BOOL (CALLBACK *DATEFMT_ENUMPROCEXW)(LPWSTR,CALID); |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 589 | typedef BOOL (CALLBACK *GEO_ENUMPROC)(GEOID); |
| 590 | typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCA)(LGRPID,LCID,LPSTR,LONG_PTR); |
| 591 | typedef BOOL (CALLBACK *LANGGROUPLOCALE_ENUMPROCW)(LGRPID,LCID,LPWSTR,LONG_PTR); |
| 592 | typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCA)(LGRPID,LPSTR,LPSTR,DWORD,LONG_PTR); |
| 593 | typedef BOOL (CALLBACK *LANGUAGEGROUP_ENUMPROCW)(LGRPID,LPWSTR,LPWSTR,DWORD,LONG_PTR); |
Patrik Stridvall | f94462f | 2002-01-31 23:22:07 +0000 | [diff] [blame] | 594 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCA)(LPSTR); |
| 595 | typedef BOOL (CALLBACK *LOCALE_ENUMPROCW)(LPWSTR); |
| 596 | typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCA)(LPSTR); |
| 597 | typedef BOOL (CALLBACK *TIMEFMT_ENUMPROCW)(LPWSTR); |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 598 | typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCA)(LPSTR,LONG_PTR); |
| 599 | typedef BOOL (CALLBACK *UILANGUAGE_ENUMPROCW)(LPWSTR,LONG_PTR); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 600 | #else |
| 601 | typedef FARPROC CALINFO_ENUMPROCA; |
| 602 | typedef FARPROC CALINFO_ENUMPROCW; |
| 603 | typedef FARPROC CALINFO_ENUMPROCEXA; |
| 604 | typedef FARPROC CALINFO_ENUMPROCEXW; |
| 605 | typedef FARPROC CODEPAGE_ENUMPROCA; |
| 606 | typedef FARPROC CODEPAGE_ENUMPROCW; |
| 607 | typedef FARPROC DATEFMT_ENUMPROCA; |
| 608 | typedef FARPROC DATEFMT_ENUMPROCW; |
| 609 | typedef FARPROC DATEFMT_ENUMPROCEXA; |
| 610 | typedef FARPROC DATEFMT_ENUMPROCEXW; |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 611 | typedef FARPROC GEO_ENUMPROC; |
| 612 | typedef FARPROC LANGGROUPLOCALE_ENUMPROCA; |
| 613 | typedef FARPROC LANGGROUPLOCALE_ENUMPROCW; |
| 614 | typedef FARPROC LANGUAGEGROUP_ENUMPROCA; |
| 615 | typedef FARPROC LANGUAGEGROUP_ENUMPROCW; |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 616 | typedef FARPROC LOCALE_ENUMPROCA; |
| 617 | typedef FARPROC LOCALE_ENUMPROCW; |
| 618 | typedef FARPROC TIMEFMT_ENUMPROCA; |
| 619 | typedef FARPROC TIMEFMT_ENUMPROCW; |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 620 | typedef FARPROC UILANGUAGE_ENUMPROCA; |
| 621 | typedef FARPROC UILANGUAGE_ENUMPROCW; |
Dimitrie O. Paun | cef5961 | 2003-01-03 19:12:55 +0000 | [diff] [blame] | 622 | #endif /* STRICT */ |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 623 | |
| 624 | DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC) |
| 625 | DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROCEX) |
| 626 | DECL_WINELIB_TYPE_AW(CODEPAGE_ENUMPROC) |
| 627 | DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROC) |
| 628 | DECL_WINELIB_TYPE_AW(DATEFMT_ENUMPROCEX) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 629 | DECL_WINELIB_TYPE_AW(LANGGROUPLOCALE_ENUMPROC) |
| 630 | DECL_WINELIB_TYPE_AW(LANGUAGEGROUP_ENUMPROC) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 631 | DECL_WINELIB_TYPE_AW(LOCALE_ENUMPROC) |
| 632 | DECL_WINELIB_TYPE_AW(TIMEFMT_ENUMPROC) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 633 | DECL_WINELIB_TYPE_AW(UILANGUAGE_ENUMPROC) |
| 634 | |
| 635 | /* Geographic Information types */ |
| 636 | enum SYSGEOTYPE |
| 637 | { |
| 638 | GEO_NATION = 1, |
| 639 | GEO_LATITUDE, |
| 640 | GEO_LONGITUDE, |
| 641 | GEO_ISO2, |
| 642 | GEO_ISO3, |
| 643 | GEO_RFC1766, |
| 644 | GEO_LCID, |
| 645 | GEO_FRIENDLYNAME, |
| 646 | GEO_OFFICIALNAME, |
| 647 | GEO_TIMEZONES, |
| 648 | GEO_OFFICIALLANGUAGES |
| 649 | }; |
| 650 | |
| 651 | enum SYSGEOCLASS |
| 652 | { |
| 653 | GEOCLASS_REGION = 14, |
| 654 | GEOCLASS_NATION = 16 |
| 655 | }; |
| 656 | |
| 657 | #define GEOID_NOT_AVAILABLE (-1) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 658 | |
| 659 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 660 | /* NLS Functions. |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 661 | */ |
Marcus Meissner | 9819f2b | 1999-04-04 12:36:29 +0000 | [diff] [blame] | 662 | |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 663 | INT WINAPI CompareStringA(LCID,DWORD,LPCSTR,INT,LPCSTR,INT); |
| 664 | INT WINAPI CompareStringW(LCID,DWORD,LPCWSTR,INT,LPCWSTR,INT); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 665 | #define CompareString WINELIB_NAME_AW(CompareString) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 666 | LCID WINAPI ConvertDefaultLocale(LCID); |
| 667 | BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA,LCID,CALID,CALTYPE); |
| 668 | BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW,LCID,CALID,CALTYPE); |
| 669 | #define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 670 | BOOL WINAPI EnumCalendarInfoExA(CALINFO_ENUMPROCEXA,LCID,CALID,CALTYPE); |
| 671 | BOOL WINAPI EnumCalendarInfoExW(CALINFO_ENUMPROCEXW,LCID,CALID,CALTYPE); |
| 672 | #define EnumCalendarInfoEx WINELIB_NAME_AW(EnumCalendarInfoEx) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 673 | BOOL WINAPI EnumDateFormatsA(DATEFMT_ENUMPROCA,LCID,DWORD); |
| 674 | BOOL WINAPI EnumDateFormatsW(DATEFMT_ENUMPROCW,LCID,DWORD); |
| 675 | #define EnumDateFormats WINELIB_NAME_AW(EnumDateFormats) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 676 | BOOL WINAPI EnumDateFormatsExA(DATEFMT_ENUMPROCEXA,LCID,DWORD); |
| 677 | BOOL WINAPI EnumDateFormatsExW(DATEFMT_ENUMPROCEXW,LCID,DWORD); |
| 678 | #define EnumDateFormatsEx WINELIB_NAME_AW(EnumDateFormatsEx) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 679 | BOOL WINAPI EnumSystemCodePagesA(CODEPAGE_ENUMPROCA,DWORD); |
| 680 | BOOL WINAPI EnumSystemCodePagesW(CODEPAGE_ENUMPROCW,DWORD); |
| 681 | #define EnumSystemCodePages WINELIB_NAME_AW(EnumSystemCodePages) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 682 | BOOL WINAPI EnumSystemGeoID(GEOCLASS,GEOID,GEO_ENUMPROC); |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 683 | BOOL WINAPI EnumSystemLocalesA(LOCALE_ENUMPROCA,DWORD); |
| 684 | BOOL WINAPI EnumSystemLocalesW(LOCALE_ENUMPROCW,DWORD); |
| 685 | #define EnumSystemLocales WINELIB_NAME_AW(EnumSystemLocales) |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 686 | BOOL WINAPI EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA,DWORD,LONG_PTR); |
| 687 | BOOL WINAPI EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW,DWORD,LONG_PTR); |
| 688 | #define EnumSystemLanguageGroups WINELIB_NAME_AW(EnumSystemLanguageGroups) |
| 689 | BOOL WINAPI EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA,LGRPID,DWORD,LONG_PTR); |
| 690 | BOOL WINAPI EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW,LGRPID,DWORD,LONG_PTR); |
| 691 | #define EnumLanguageGroupLocales WINELIB_NAME_AW(EnumLanguageGroupLocales) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 692 | BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA,LCID,DWORD); |
| 693 | BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW,LCID,DWORD); |
| 694 | #define EnumTimeFormats WINELIB_NAME_AW(EnumTimeFormats) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 695 | BOOL WINAPI EnumUILanguagesA(UILANGUAGE_ENUMPROCA,DWORD,LONG_PTR); |
| 696 | BOOL WINAPI EnumUILanguagesW(UILANGUAGE_ENUMPROCW,DWORD,LONG_PTR); |
| 697 | #define EnumUILanguages WINELIB_NAME_AW(EnumUILanguages) |
| 698 | INT WINAPI FoldStringA(DWORD,LPCSTR,INT,LPSTR,INT); |
| 699 | INT WINAPI FoldStringW(DWORD,LPCWSTR,INT,LPWSTR,INT); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 700 | #define FoldString WINELIB_NAME_AW(FoldString) |
| 701 | UINT WINAPI GetACP(void); |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 702 | BOOL WINAPI GetCPInfo(UINT,LPCPINFO); |
| 703 | BOOL WINAPI GetCPInfoExA(UINT,DWORD,LPCPINFOEXA); |
| 704 | BOOL WINAPI GetCPInfoExW(UINT,DWORD,LPCPINFOEXW); |
| 705 | #define GetCPInfoEx WINELIB_NAME_AW(GetCPInfoEx) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 706 | INT WINAPI GetCalendarInfoA(LCID,DWORD,DWORD,LPSTR,INT,LPDWORD); |
| 707 | INT WINAPI GetCalendarInfoW(LCID,DWORD,DWORD,LPWSTR,INT,LPDWORD); |
Vincent Béron | 736e81c | 2002-05-14 21:44:07 +0000 | [diff] [blame] | 708 | #define GetCalendarInfo WINELIB_NAME_AW(GetCalendarInfo) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 709 | INT WINAPI GetCurrencyFormatA(LCID,DWORD,LPCSTR,const CURRENCYFMTA*,LPSTR,INT); |
| 710 | INT WINAPI GetCurrencyFormatW(LCID,DWORD,LPCWSTR,const CURRENCYFMTW*,LPWSTR,INT); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 711 | #define GetCurrencyFormat WINELIB_NAME_AW(GetCurrencyFormat) |
| 712 | INT WINAPI GetDateFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT); |
| 713 | INT WINAPI GetDateFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT); |
| 714 | #define GetDateFormat WINELIB_NAME_AW(GetDateFormat) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 715 | INT WINAPI GetGeoInfoA(GEOID,GEOTYPE,LPSTR,INT,LANGID); |
| 716 | INT WINAPI GetGeoInfoW(GEOID,GEOTYPE,LPWSTR,INT,LANGID); |
| 717 | #define GetGeoInfo WINELIB_NAME_AW(GetGeoInfo) |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 718 | INT WINAPI GetLocaleInfoA(LCID,LCTYPE,LPSTR,INT); |
| 719 | INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT); |
| 720 | #define GetLocaleInfo WINELIB_NAME_AW(GetLocaleInfo) |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 721 | INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,INT); |
| 722 | INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,INT); |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 723 | #define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 724 | UINT WINAPI GetOEMCP(void); |
| 725 | BOOL WINAPI GetStringTypeA(LCID,DWORD,LPCSTR,INT,LPWORD); |
| 726 | BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD); |
| 727 | BOOL WINAPI GetStringTypeExA(LCID,DWORD,LPCSTR,INT,LPWORD); |
| 728 | BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD); |
| 729 | #define GetStringTypeEx WINELIB_NAME_AW(GetStringTypeEx) |
| 730 | LANGID WINAPI GetSystemDefaultLangID(void); |
| 731 | LCID WINAPI GetSystemDefaultLCID(void); |
Steve Lustbader | 2fbd4a0 | 2002-10-07 18:27:06 +0000 | [diff] [blame] | 732 | LANGID WINAPI GetSystemDefaultUILanguage(void); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 733 | LCID WINAPI GetThreadLocale(void); |
| 734 | INT WINAPI GetTimeFormatA(LCID,DWORD,const SYSTEMTIME*,LPCSTR,LPSTR,INT); |
| 735 | INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWSTR,LPWSTR,INT); |
| 736 | #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat) |
| 737 | LANGID WINAPI GetUserDefaultLangID(void); |
| 738 | LCID WINAPI GetUserDefaultLCID(void); |
Steve Lustbader | 2fbd4a0 | 2002-10-07 18:27:06 +0000 | [diff] [blame] | 739 | LANGID WINAPI GetUserDefaultUILanguage(void); |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 740 | GEOID WINAPI GetUserGeoID(GEOCLASS); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 741 | BOOL WINAPI IsDBCSLeadByte(BYTE); |
| 742 | BOOL WINAPI IsDBCSLeadByteEx(UINT,BYTE); |
François Gouget | f53b0e8 | 2001-01-04 19:32:22 +0000 | [diff] [blame] | 743 | BOOL WINAPI IsValidCodePage(UINT); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 744 | BOOL WINAPI IsValidLocale(LCID,DWORD); |
Maxime Bellengé | 2e9f3d8 | 2003-04-19 20:22:19 +0000 | [diff] [blame] | 745 | BOOL WINAPI IsValidLanguageGroup(LGRPID,DWORD); |
Dmitry Timoshkov | 93e936f | 2001-06-28 17:59:22 +0000 | [diff] [blame] | 746 | INT WINAPI LCMapStringA(LCID,DWORD,LPCSTR,INT,LPSTR,INT); |
| 747 | INT WINAPI LCMapStringW(LCID,DWORD,LPCWSTR,INT,LPWSTR,INT); |
| 748 | #define LCMapString WINELIB_NAME_AW(LCMapString) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 749 | INT WINAPI MultiByteToWideChar(UINT,DWORD,LPCSTR,INT,LPWSTR,INT); |
Alexandre Julliard | 2fdc4dc | 2003-11-26 04:11:56 +0000 | [diff] [blame] | 750 | INT WINAPI SetCalendarInfoA(LCID,CALID,CALTYPE,LPCSTR); |
| 751 | INT WINAPI SetCalendarInfoW(LCID,CALID,CALTYPE,LPCWSTR); |
| 752 | #define SetCalendarInfo WINELIB_NAME_AW(SetCalendarInfo) |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 753 | BOOL WINAPI SetLocaleInfoA(LCID,LCTYPE,LPCSTR); |
| 754 | BOOL WINAPI SetLocaleInfoW(LCID,LCTYPE,LPCWSTR); |
| 755 | #define SetLocaleInfo WINELIB_NAME_AW(SetLocaleInfo) |
| 756 | BOOL WINAPI SetThreadLocale(LCID); |
Jon Griffiths | 228f22e | 2003-08-18 19:54:13 +0000 | [diff] [blame] | 757 | BOOL WINAPI SetUserGeoID(GEOID); |
Francois Gouget | 038af79 | 2001-09-19 22:28:00 +0000 | [diff] [blame] | 758 | INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL); |
Dmitry Timoshkov | d6a494f | 2000-02-25 21:36:27 +0000 | [diff] [blame] | 759 | |
Francois Gouget | 48fc4aa | 2000-10-12 23:20:29 +0000 | [diff] [blame] | 760 | #ifdef __cplusplus |
| 761 | } |
| 762 | #endif |
| 763 | |
| 764 | #endif /* !NONLS */ |
Alexandre Julliard | ade697e | 1995-11-26 13:59:11 +0000 | [diff] [blame] | 765 | #endif /* __WINE_WINNLS_H */ |