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