Changeset 10421 for trunk/include


Ignore:
Timestamp:
Jan 29, 2004, 3:12:09 PM (22 years ago)
Author:
bird
Message:

#776: Synced language ids and releated #defines with current wine headers. (i.e. headers are only partially synced.)

Location:
trunk/include/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winnls.h

    r9973 r10421  
    172172#define WC_DEFAULTCHECK                           0x00000100
    173173
    174 #define MAKELCID(l, s)                      (MAKELONG(l, s))
    175 
    176 #define LANGIDFROMLCID(lcid)    ((WORD)(lcid))
    177 #define SORTIDFROMLCID(lcid)    ((WORD)((((DWORD)(lcid)) >> 16) & 0x0f))
    178 
    179 #define MAKELANGID(p, s)                 ((((WORD)(s))<<10) | (WORD)(p))
    180 #define PRIMARYLANGID(l)                 ((WORD)(l) & 0x3ff)
    181 #define SUBLANGID(l)                        ((WORD)(l) >> 10)
    182 
    183 #define LANG_SYSTEM_DEFAULT              (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
    184 #define LANG_USER_DEFAULT                (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
    185 #define LOCALE_SYSTEM_DEFAULT            (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
    186 #define LOCALE_USER_DEFAULT              (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))
    187 #define LOCALE_NEUTRAL                      (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
    188 
    189 
    190 /* Language IDs (were in winnt.h,  for some reason) */
    191 
    192 
    193 /* Language IDs */
    194 
    195 /* FIXME: are the symbolic names correct for LIDs:  0x17, 0x20, 0x28,
    196  *   0x2a, 0x2b, 0x2c, 0x2f, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35,
    197  *   0x37, 0x39, 0x3a, 0x3b, 0x3c, 0x3e, 0x3f, 0x41, 0x43, 0x44,
    198  *   0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e,
    199  *   0x4f, 0x57
    200  */
    201 #define LANG_NEUTRAL                     0x00
    202 #define LANG_AFRIKAANS                          0x36
    203 #define LANG_ALBANIAN                           0x1c
    204 #define LANG_ARABIC                      0x01
    205 #define LANG_ARMENIAN                           0x2b
    206 #define LANG_ASSAMESE                           0x4d
    207 #define LANG_AZERI                              0x2c
    208 #define LANG_BASQUE                      0x2d
    209 #define LANG_BENGALI                            0x45
    210 #define LANG_BULGARIAN                   0x02
    211 #define LANG_BYELORUSSIAN                0x23
    212 #define LANG_CATALAN                     0x03
    213 #define LANG_CHINESE                     0x04
    214 #define LANG_SERBO_CROATIAN              0x1a
    215 #define LANG_CROATIAN                      LANG_SERBO_CROATIAN
    216 #define LANG_SERBIAN                       LANG_SERBO_CROATIAN
    217 #define LANG_CZECH                       0x05
    218 #define LANG_DANISH                      0x06
    219 #define LANG_DUTCH                       0x13
    220 #define LANG_ENGLISH                     0x09
    221 #define LANG_ESTONIAN                    0x25
    222 #define LANG_FAEROESE                    0x38
    223 #define LANG_FARSI                       0x29
    224 #define LANG_FINNISH                     0x0b
    225 #define LANG_FRENCH                      0x0c
    226 #define LANG_GAELIC                             0x3c
    227 #define LANG_GEORGIAN                           0x37
    228 #define LANG_GERMAN                      0x07
    229 #define LANG_GREEK                       0x08
    230 #define LANG_GUJARATI                           0x47
    231 #define LANG_HEBREW                      0x0D
    232 #define LANG_HINDI                              0x39
    233 #define LANG_HUNGARIAN                   0x0e
    234 #define LANG_ICELANDIC                   0x0f
    235 #define LANG_INDONESIAN                  0x21
    236 #define LANG_ITALIAN                     0x10
    237 #define LANG_JAPANESE                    0x11
    238 #define LANG_KANNADA                            0x4b
    239 #define LANG_KAZAKH                             0x3f
    240 #define LANG_KONKANI                            0x57
    241 #define LANG_KOREAN                      0x12
    242 #define LANG_LATVIAN                     0x26
    243 #define LANG_LITHUANIAN                  0x27
    244 #define LANG_MACEDONIAN                         0x2f
    245 #define LANG_MALAY                              0x3e
    246 #define LANG_MALAYALAM                          0x4c
    247 #define LANG_MALTESE                            0x3a
    248 #define LANG_MAORI                              0x28
    249 #define LANG_MARATHI                            0x4e
    250 #define LANG_NORWEGIAN                   0x14
    251 #define LANG_ORIYA                              0x48
    252 #define LANG_POLISH                      0x15
    253 #define LANG_PORTUGUESE                  0x16
    254 #define LANG_PUNJABI                            0x46
    255 #define LANG_RHAETO_ROMANCE                  0x17
    256 #define LANG_ROMANIAN                    0x18
    257 #define LANG_RUSSIAN                     0x19
    258 #define LANG_SAAMI                              0x3b
    259 #define LANG_SANSKRIT                           0x4f
    260 #define LANG_SLOVAK                      0x1b
    261 #define LANG_SLOVENIAN                   0x24
    262 #define LANG_SORBIAN                     0x2e
    263 #define LANG_SPANISH                     0x0a
    264 #define LANG_SUTU                            0x30
    265 #define LANG_SWAHILI                            0x41
    266 #define LANG_SWEDISH                     0x1d
    267 #define LANG_TAMIL                              0x49
    268 #define LANG_TATAR                              0x44
    269 #define LANG_TELUGU                             0x4a
    270 #define LANG_THAI                        0x1e
    271 #define LANG_TSONGA                             0x31
    272 #define LANG_TSWANA                             0x32
    273 #define LANG_TURKISH                     0x1f
    274 #define LANG_UKRAINIAN                   0x22
    275 #define LANG_URDU                            0x20
    276 #define LANG_UZBEK                              0x43
    277 #define LANG_VENDA                              0x33
    278 #define LANG_VIETNAMESE                         0x2a
    279 #define LANG_XHOSA                              0x34
    280 #define LANG_ZULU                            0x35
    281 /* non standard; keep the number high enough (but < 0xff) */
    282 #define LANG_ESPERANTO                          0x8f
    283 #define LANG_WALON                              0x90
    284 #define LANG_CORNISH                            0x91
    285 #define LANG_WELSH                              0x92
    286 #define LANG_BRETON                             0x93
    287 
    288 /* Sublanguage definitions */
    289 #define SUBLANG_NEUTRAL                  0x00    /* language neutral */
    290 #define SUBLANG_DEFAULT                  0x01    /* user default */
    291 #define SUBLANG_SYS_DEFAULT              0x02    /* system default */
    292 
    293 #define SUBLANG_ARABIC                   0x01
    294 #define SUBLANG_ARABIC_SAUDI_ARABIA      0x01
    295 #define SUBLANG_ARABIC_IRAQ              0x02
    296 #define SUBLANG_ARABIC_EGYPT             0x03
    297 #define SUBLANG_ARABIC_LIBYA             0x04
    298 #define SUBLANG_ARABIC_ALGERIA           0x05
    299 #define SUBLANG_ARABIC_MOROCCO           0x06
    300 #define SUBLANG_ARABIC_TUNISIA           0x07
    301 #define SUBLANG_ARABIC_OMAN              0x08
    302 #define SUBLANG_ARABIC_YEMEN             0x09
    303 #define SUBLANG_ARABIC_SYRIA             0x0a
    304 #define SUBLANG_ARABIC_JORDAN            0x0b
    305 #define SUBLANG_ARABIC_LEBANON           0x0c
    306 #define SUBLANG_ARABIC_KUWAIT            0x0d
    307 #define SUBLANG_ARABIC_UAE               0x0e
    308 #define SUBLANG_ARABIC_BAHRAIN           0x0f
    309 #define SUBLANG_ARABIC_QATAR             0x10
    310 #define SUBLANG_CHINESE_TRADITIONAL      0x01
    311 #define SUBLANG_CHINESE_SIMPLIFIED       0x02
    312 #define SUBLANG_CHINESE_HONGKONG         0x03
    313 #define SUBLANG_CHINESE_SINGAPORE        0x04
    314 #define SUBLANG_CHINESE_MACAU            0x05
    315 #define SUBLANG_DUTCH                    0x01
    316 #define SUBLANG_DUTCH_BELGIAN            0x02
    317 #define SUBLANG_DUTCH_SURINAM                0x03
    318 #define SUBLANG_ENGLISH_US               0x01
    319 #define SUBLANG_ENGLISH_UK               0x02
    320 #define SUBLANG_ENGLISH_AUS              0x03
    321 #define SUBLANG_ENGLISH_CAN              0x04
    322 #define SUBLANG_ENGLISH_NZ               0x05
    323 #define SUBLANG_ENGLISH_EIRE             0x06
    324 #define SUBLANG_ENGLISH_SAFRICA          0x07
    325 #define SUBLANG_ENGLISH_JAMAICA          0x08
    326 #define SUBLANG_ENGLISH_CARRIBEAN        0x09
    327 #define SUBLANG_ENGLISH_BELIZE           0x0a
    328 #define SUBLANG_ENGLISH_TRINIDAD         0x0b
    329 #define SUBLANG_ENGLISH_ZIMBABWE         0x0c
    330 #define SUBLANG_ENGLISH_PHILIPPINES      0x0d
    331 #define SUBLANG_FRENCH                   0x01
    332 #define SUBLANG_FRENCH_BELGIAN           0x02
    333 #define SUBLANG_FRENCH_CANADIAN          0x03
    334 #define SUBLANG_FRENCH_SWISS             0x04
    335 #define SUBLANG_FRENCH_LUXEMBOURG        0x05
    336 #define SUBLANG_FRENCH_MONACO            0x06
    337 #define SUBLANG_GERMAN                   0x01
    338 #define SUBLANG_GERMAN_SWISS             0x02
    339 #define SUBLANG_GERMAN_AUSTRIAN          0x03
    340 #define SUBLANG_GERMAN_LUXEMBOURG        0x04
    341 #define SUBLANG_GERMAN_LIECHTENSTEIN     0x05
    342 #define SUBLANG_ITALIAN                  0x01
    343 #define SUBLANG_ITALIAN_SWISS            0x02
    344 #define SUBLANG_KOREAN                   0x01
    345 #define SUBLANG_KOREAN_JOHAB             0x02
    346 #define SUBLANG_NORWEGIAN_BOKMAL         0x01
    347 #define SUBLANG_NORWEGIAN_NYNORSK        0x02
    348 #define SUBLANG_PORTUGUESE               0x02
    349 #define SUBLANG_PORTUGUESE_BRAZILIAN     0x01
    350 #define SUBLANG_SPANISH                  0x01
    351 #define SUBLANG_SPANISH_MEXICAN          0x02
    352 #define SUBLANG_SPANISH_MODERN           0x03
    353 #define SUBLANG_SPANISH_GUATEMALA        0x04
    354 #define SUBLANG_SPANISH_COSTARICA        0x05
    355 #define SUBLANG_SPANISH_PANAMA           0x06
    356 #define SUBLANG_SPANISH_DOMINICAN        0x07
    357 #define SUBLANG_SPANISH_VENEZUELA        0x08
    358 #define SUBLANG_SPANISH_COLOMBIA         0x09
    359 #define SUBLANG_SPANISH_PERU             0x0a
    360 #define SUBLANG_SPANISH_ARGENTINA        0x0b
    361 #define SUBLANG_SPANISH_ECUADOR          0x0c
    362 #define SUBLANG_SPANISH_CHILE            0x0d
    363 #define SUBLANG_SPANISH_URUGUAY          0x0e
    364 #define SUBLANG_SPANISH_PARAGUAY         0x0f
    365 #define SUBLANG_SPANISH_BOLIVIA          0x10
    366 #define SUBLANG_SPANISH_EL_SALVADOR      0x11
    367 #define SUBLANG_SPANISH_HONDURAS         0x12
    368 #define SUBLANG_SPANISH_NICARAGUA        0x13
    369 #define SUBLANG_SPANISH_PUERTO_RICO      0x14
    370 /* FIXME: I don't know the symbolic names for those */
    371 #define SUBLANG_ROMANIAN                 0x01
    372 #define SUBLANG_ROMANIAN_MOLDAVIA        0x02
    373 #define SUBLANG_RUSSIAN                  0x01
    374 #define SUBLANG_RUSSIAN_MOLDAVIA         0x02
    375 #define SUBLANG_CROATIAN                 0x01
    376 #define SUBLANG_SERBIAN                  0x02
    377 #define SUBLANG_SERBIAN_LATIN            0x03
    378 #define SUBLANG_SWEDISH                  0x01
    379 #define SUBLANG_SWEDISH_FINLAND          0x02
    380 #define SUBLANG_LITHUANIAN               0x01
    381 #define SUBLANG_LITHUANIAN_CLASSIC       0x02
    382 #define SUBLANG_AZERI                    0x01
    383 #define SUBLANG_AZERI_CYRILLIC           0x02
    384 #define SUBLANG_GAELIC                   0x01
    385 #define SUBLANG_GAELIC_SCOTTISH          0x02
    386 #define SUBLANG_GAELIC_MANX              0x03
    387 #define SUBLANG_MALAY                    0x01
    388 #define SUBLANG_MALAY_BRUNEI_DARUSSALAM  0x02
    389 #define SUBLANG_UZBEK                    0x01
    390 #define SUBLANG_UZBEK_CYRILLIC           0x02
    391 #define SUBLANG_URDU_PAKISTAN            0x01
    392 
    393 /* Sort definitions */
    394 #define SORT_DEFAULT                     0x0
    395 #define SORT_JAPANESE_XJIS               0x0
    396 #define SORT_JAPANESE_UNICODE            0x1
    397 #define SORT_CHINESE_BIG5                0x0
    398 #define SORT_CHINESE_UNICODE             0x1
    399 #define SORT_KOREAN_KSC                  0x0
    400 #define SORT_KOREAN_UNICODE              0x1
    401 
    402 
    403174/* Locale Dependent Mapping Flags */
    404175#define LCMAP_LOWERCASE                  0x00000100  /* lower case letters */
  • trunk/include/win/winnt.h

    r9969 r10421  
    1111
    1212/* Defines */
    13 
    14 #define UNREFERENCED_PARAMETER(a)
    1513
    1614/* Argument 1 passed to the DllEntryProc. */
     
    187185    DWORD   ControlWord;
    188186    DWORD   StatusWord;
    189     DWORD   TagWord;   
     187    DWORD   TagWord;
    190188    DWORD   ErrorOffset;
    191189    DWORD   ErrorSelector;
    192190    DWORD   DataOffset;
    193     DWORD   DataSelector;   
     191    DWORD   DataSelector;
    194192    BYTE    RegisterArea[SIZE_OF_80387_REGISTERS];
    195193    DWORD   Cr0NpxState;
     
    215213    DWORD   SegFs;
    216214    DWORD   SegEs;
    217     DWORD   SegDs;   
     215    DWORD   SegDs;
    218216
    219217    /* These are selected by CONTEXT_INTEGER */
     
    221219    DWORD   Esi;
    222220    DWORD   Ebx;
    223     DWORD   Edx;   
     221    DWORD   Edx;
    224222    DWORD   Ecx;
    225223    DWORD   Eax;
    226224
    227225    /* These are selected by CONTEXT_CONTROL */
    228     DWORD   Ebp;   
     226    DWORD   Ebp;
    229227    DWORD   Eip;
    230228    DWORD   SegCs;
     
    263261
    264262#define CONTEXT_ALPHA   0x00020000
    265  
     263
    266264#define CONTEXT_CONTROL         (CONTEXT_ALPHA | 0x00000001L)
    267265#define CONTEXT_FLOATING_POINT  (CONTEXT_ALPHA | 0x00000002L)
     
    578576#ifdef __sparc__
    579577
    580 /* 
    581  * FIXME: 
     578/*
     579 * FIXME:
    582580 *
    583  * There is no official CONTEXT structure defined for the SPARC 
     581 * There is no official CONTEXT structure defined for the SPARC
    584582 * architecture, so I just made one up.
    585583 *
     
    591589 *
    592590 * The layout follows the Solaris 'prgregset_t' structure.
    593  * 
    594  */ 
     591 *
     592 */
    595593
    596594#define CONTEXT_SPARC            0x10000000
     
    654652#endif
    655653
     654
    656655#if !defined(CONTEXT_FULL) && !defined(RC_INVOKED)
    657656#error You need to define a CONTEXT for your CPU
     
    700699#define DL_reg(context)      (*(BYTE*)&EDX_reg(context))
    701700#define DH_reg(context)      (*((BYTE*)&EDX_reg(context)+1))
    702                            
     701
    703702#define SET_CFLAG(context)   (EFL_reg(context) |= 0x0001)
    704703#define RESET_CFLAG(context) (EFL_reg(context) &= ~0x0001)
     
    773772# define GET_IP(context) ((LPVOID)(context)->pc)
    774773#endif
    775  
     774
    776775#if !defined(GET_IP) && !defined(RC_INVOKED)
    777776# error You must define GET_IP for this CPU
     
    779778
    780779#endif  /* __WINE__ */
     780
     781/* bird-start: from newer winnt.h */
     782/*
     783 * Language IDs
     784 */
     785
     786#define MAKELCID(l, s)          (MAKELONG(l, s))
     787
     788#define MAKELANGID(p, s)        ((((WORD)(s))<<10) | (WORD)(p))
     789#define PRIMARYLANGID(l)        ((WORD)(l) & 0x3ff)
     790#define SUBLANGID(l)            ((WORD)(l) >> 10)
     791
     792#define LANGIDFROMLCID(lcid)    ((WORD)(lcid))
     793#define SORTIDFROMLCID(lcid)    ((WORD)((((DWORD)(lcid)) >> 16) & 0x0f))
     794
     795#define LANG_SYSTEM_DEFAULT     (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
     796#define LANG_USER_DEFAULT       (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
     797#define LOCALE_SYSTEM_DEFAULT   (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
     798#define LOCALE_USER_DEFAULT     (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))
     799#define LOCALE_NEUTRAL          (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
     800
     801#define UNREFERENCED_PARAMETER(u)       (u)
     802#define DBG_UNREFERENCED_PARAMETER(u)   (u)
     803#define DBG_UNREFERENCED_LOCAL_VARIABLE(u) (u)
     804
     805/* FIXME: are the symbolic names correct for LIDs:  0x17, 0x28,
     806 *        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x3a, 0x3b, 0x3c
     807 */
     808#define LANG_NEUTRAL        0x00
     809#define LANG_INVARIANT      0x7f
     810
     811#define LANG_AFRIKAANS      0x36
     812#define LANG_ALBANIAN       0x1c
     813#define LANG_ARABIC         0x01
     814#define LANG_ARMENIAN       0x2b
     815#define LANG_ASSAMESE       0x4d
     816#define LANG_AZERI          0x2c
     817#define LANG_BASQUE         0x2d
     818#define LANG_BELARUSIAN     0x23
     819#define LANG_BENGALI        0x45
     820#define LANG_BULGARIAN      0x02
     821#define LANG_CATALAN        0x03
     822#define LANG_CHINESE        0x04
     823#define LANG_CROATIAN       0x1a
     824#define LANG_CZECH          0x05
     825#define LANG_DANISH         0x06
     826#define LANG_DIVEHI         0x65
     827#define LANG_DUTCH          0x13
     828#define LANG_ENGLISH        0x09
     829#define LANG_ESTONIAN       0x25
     830#define LANG_FAEROESE       0x38
     831#define LANG_FARSI          0x29
     832#define LANG_FINNISH        0x0b
     833#define LANG_FRENCH         0x0c
     834#define LANG_GALICIAN       0x56
     835#define LANG_GEORGIAN       0x37
     836#define LANG_GERMAN         0x07
     837#define LANG_GREEK          0x08
     838#define LANG_GUJARATI       0x47
     839#define LANG_HEBREW         0x0d
     840#define LANG_HINDI          0x39
     841#define LANG_HUNGARIAN      0x0e
     842#define LANG_ICELANDIC      0x0f
     843#define LANG_INDONESIAN     0x21
     844#define LANG_ITALIAN        0x10
     845#define LANG_JAPANESE       0x11
     846#define LANG_KANNADA        0x4b
     847#define LANG_KASHMIRI       0x60
     848#define LANG_KAZAK          0x3f
     849#define LANG_KONKANI        0x57
     850#define LANG_KOREAN         0x12
     851#define LANG_KYRGYZ         0x40
     852#define LANG_LATVIAN        0x26
     853#define LANG_LITHUANIAN     0x27
     854#define LANG_MACEDONIAN     0x2f
     855#define LANG_MALAY          0x3e
     856#define LANG_MALAYALAM      0x4c
     857#define LANG_MANIPURI       0x58
     858#define LANG_MARATHI        0x4e
     859#define LANG_MONGOLIAN      0x50
     860#define LANG_NEPALI         0x61
     861#define LANG_NORWEGIAN      0x14
     862#define LANG_ORIYA          0x48
     863#define LANG_POLISH         0x15
     864#define LANG_PORTUGUESE     0x16
     865#define LANG_PUNJABI        0x46
     866#define LANG_ROMANIAN       0x18
     867#define LANG_RUSSIAN        0x19
     868#define LANG_SANSKRIT       0x4f
     869#define LANG_SERBIAN        0x1a
     870#define LANG_SINDHI         0x59
     871#define LANG_SLOVAK         0x1b
     872#define LANG_SLOVENIAN      0x24
     873#define LANG_SPANISH        0x0a
     874#define LANG_SWAHILI        0x41
     875#define LANG_SWEDISH        0x1d
     876#define LANG_SYRIAC         0x5a
     877#define LANG_TAMIL          0x49
     878#define LANG_TATAR          0x44
     879#define LANG_TELUGU         0x4a
     880#define LANG_THAI           0x1e
     881#define LANG_TURKISH        0x1f
     882#define LANG_UKRAINIAN      0x22
     883#define LANG_URDU           0x20
     884#define LANG_UZBEK          0x43
     885#define LANG_VIETNAMESE     0x2a
     886
     887/* FIXME: these are not in the Windows header */
     888#define LANG_GAELIC         0x3c
     889#define LANG_MALTESE        0x3a
     890#define LANG_MAORI          0x28
     891#define LANG_RHAETO_ROMANCE 0x17
     892#define LANG_SAAMI          0x3b
     893#define LANG_SORBIAN        0x2e
     894#define LANG_SUTU           0x30
     895#define LANG_TSONGA         0x31
     896#define LANG_TSWANA         0x32
     897#define LANG_VENDA          0x33
     898#define LANG_XHOSA          0x34
     899#define LANG_ZULU           0x35
     900
     901/* non standard; keep the number high enough (but < 0xff) */
     902#define LANG_ESPERANTO                   0x8f
     903#define LANG_WALON                       0x90
     904#define LANG_CORNISH                     0x91
     905#define LANG_WELSH                       0x92
     906#define LANG_BRETON                      0x93
     907
     908/* Sublanguage definitions */
     909#define SUBLANG_NEUTRAL                  0x00    /* language neutral */
     910#define SUBLANG_DEFAULT                  0x01    /* user default */
     911#define SUBLANG_SYS_DEFAULT              0x02    /* system default */
     912
     913#define SUBLANG_ARABIC_SAUDI_ARABIA        0x01
     914#define SUBLANG_ARABIC_IRAQ                0x02
     915#define SUBLANG_ARABIC_EGYPT               0x03
     916#define SUBLANG_ARABIC_LIBYA               0x04
     917#define SUBLANG_ARABIC_ALGERIA             0x05
     918#define SUBLANG_ARABIC_MOROCCO             0x06
     919#define SUBLANG_ARABIC_TUNISIA             0x07
     920#define SUBLANG_ARABIC_OMAN                0x08
     921#define SUBLANG_ARABIC_YEMEN               0x09
     922#define SUBLANG_ARABIC_SYRIA               0x0a
     923#define SUBLANG_ARABIC_JORDAN              0x0b
     924#define SUBLANG_ARABIC_LEBANON             0x0c
     925#define SUBLANG_ARABIC_KUWAIT              0x0d
     926#define SUBLANG_ARABIC_UAE                 0x0e
     927#define SUBLANG_ARABIC_BAHRAIN             0x0f
     928#define SUBLANG_ARABIC_QATAR               0x10
     929#define SUBLANG_AZERI_LATIN                0x01
     930#define SUBLANG_AZERI_CYRILLIC             0x02
     931#define SUBLANG_CHINESE_TRADITIONAL        0x01
     932#define SUBLANG_CHINESE_SIMPLIFIED         0x02
     933#define SUBLANG_CHINESE_HONGKONG           0x03
     934#define SUBLANG_CHINESE_SINGAPORE          0x04
     935#define SUBLANG_CHINESE_MACAU              0x05
     936#define SUBLANG_DUTCH                      0x01
     937#define SUBLANG_DUTCH_BELGIAN              0x02
     938#define SUBLANG_ENGLISH_US                 0x01
     939#define SUBLANG_ENGLISH_UK                 0x02
     940#define SUBLANG_ENGLISH_AUS                0x03
     941#define SUBLANG_ENGLISH_CAN                0x04
     942#define SUBLANG_ENGLISH_NZ                 0x05
     943#define SUBLANG_ENGLISH_EIRE               0x06
     944#define SUBLANG_ENGLISH_SOUTH_AFRICA       0x07
     945#define SUBLANG_ENGLISH_JAMAICA            0x08
     946#define SUBLANG_ENGLISH_CARIBBEAN          0x09
     947#define SUBLANG_ENGLISH_BELIZE             0x0a
     948#define SUBLANG_ENGLISH_TRINIDAD           0x0b
     949#define SUBLANG_ENGLISH_ZIMBABWE           0x0c
     950#define SUBLANG_ENGLISH_PHILIPPINES        0x0d
     951#define SUBLANG_FRENCH                     0x01
     952#define SUBLANG_FRENCH_BELGIAN             0x02
     953#define SUBLANG_FRENCH_CANADIAN            0x03
     954#define SUBLANG_FRENCH_SWISS               0x04
     955#define SUBLANG_FRENCH_LUXEMBOURG          0x05
     956#define SUBLANG_FRENCH_MONACO              0x06
     957#define SUBLANG_GERMAN                     0x01
     958#define SUBLANG_GERMAN_SWISS               0x02
     959#define SUBLANG_GERMAN_AUSTRIAN            0x03
     960#define SUBLANG_GERMAN_LUXEMBOURG          0x04
     961#define SUBLANG_GERMAN_LIECHTENSTEIN       0x05
     962#define SUBLANG_ITALIAN                    0x01
     963#define SUBLANG_ITALIAN_SWISS              0x02
     964#define SUBLANG_KASHMIRI_SASIA             0x02
     965#define SUBLANG_KASHMIRI_INDIA             0x02
     966#define SUBLANG_KOREAN                     0x01
     967#ifdef __WIN32OS2__                     /* This have been removed from the SDK. But kernel32 use it. */
     968#define SUBLANG_KOREAN_JOHAB               0x02
     969#endif
     970#define SUBLANG_LITHUANIAN                 0x01
     971#define SUBLANG_MALAY_MALAYSIA             0x01
     972#define SUBLANG_MALAY_BRUNEI_DARUSSALAM    0x02
     973#define SUBLANG_NEPALI_INDIA               0x02
     974#define SUBLANG_NORWEGIAN_BOKMAL           0x01
     975#define SUBLANG_NORWEGIAN_NYNORSK          0x02
     976#define SUBLANG_PORTUGUESE                 0x02
     977#define SUBLANG_PORTUGUESE_BRAZILIAN       0x01
     978#define SUBLANG_SERBIAN_LATIN              0x02
     979#define SUBLANG_SERBIAN_CYRILLIC           0x03
     980#define SUBLANG_SPANISH                    0x01
     981#define SUBLANG_SPANISH_MEXICAN            0x02
     982#define SUBLANG_SPANISH_MODERN             0x03
     983#define SUBLANG_SPANISH_GUATEMALA          0x04
     984#define SUBLANG_SPANISH_COSTA_RICA         0x05
     985#define SUBLANG_SPANISH_PANAMA             0x06
     986#define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07
     987#define SUBLANG_SPANISH_VENEZUELA          0x08
     988#define SUBLANG_SPANISH_COLOMBIA           0x09
     989#define SUBLANG_SPANISH_PERU               0x0a
     990#define SUBLANG_SPANISH_ARGENTINA          0x0b
     991#define SUBLANG_SPANISH_ECUADOR            0x0c
     992#define SUBLANG_SPANISH_CHILE              0x0d
     993#define SUBLANG_SPANISH_URUGUAY            0x0e
     994#define SUBLANG_SPANISH_PARAGUAY           0x0f
     995#define SUBLANG_SPANISH_BOLIVIA            0x10
     996#define SUBLANG_SPANISH_EL_SALVADOR        0x11
     997#define SUBLANG_SPANISH_HONDURAS           0x12
     998#define SUBLANG_SPANISH_NICARAGUA          0x13
     999#define SUBLANG_SPANISH_PUERTO_RICO        0x14
     1000#define SUBLANG_SWEDISH                    0x01
     1001#define SUBLANG_SWEDISH_FINLAND            0x02
     1002#define SUBLANG_URDU_PAKISTAN              0x01
     1003#define SUBLANG_URDU_INDIA                 0x02
     1004#define SUBLANG_UZBEK_LATIN                0x01
     1005#define SUBLANG_UZBEK_CYRILLIC             0x02
     1006
     1007/* FIXME: these are not in the Windows header */
     1008#define SUBLANG_DUTCH_SURINAM              0x03
     1009#define SUBLANG_ROMANIAN                   0x01
     1010#define SUBLANG_ROMANIAN_MOLDAVIA          0x02
     1011#define SUBLANG_RUSSIAN                    0x01
     1012#define SUBLANG_RUSSIAN_MOLDAVIA           0x02
     1013#define SUBLANG_CROATIAN                   0x01
     1014#define SUBLANG_LITHUANIAN_CLASSIC         0x02
     1015#define SUBLANG_GAELIC                     0x01
     1016#define SUBLANG_GAELIC_SCOTTISH            0x02
     1017#define SUBLANG_GAELIC_MANX                0x03
     1018
     1019
     1020/*
     1021 * Sort definitions
     1022 */
     1023
     1024#define SORT_DEFAULT                     0x0
     1025#define SORT_JAPANESE_XJIS               0x0
     1026#define SORT_JAPANESE_UNICODE            0x1
     1027#define SORT_CHINESE_BIG5                0x0
     1028#define SORT_CHINESE_UNICODE             0x1
     1029#define SORT_KOREAN_KSC                  0x0
     1030#define SORT_KOREAN_UNICODE              0x1
     1031
     1032
     1033
     1034/*
     1035 * Definitions for IsTextUnicode()
     1036 */
     1037
     1038#define IS_TEXT_UNICODE_ASCII16            0x0001
     1039#define IS_TEXT_UNICODE_STATISTICS         0x0002
     1040#define IS_TEXT_UNICODE_CONTROLS           0x0004
     1041#define IS_TEXT_UNICODE_SIGNATURE          0x0008
     1042#define IS_TEXT_UNICODE_UNICODE_MASK       0x000F
     1043#define IS_TEXT_UNICODE_REVERSE_ASCII16    0x0010
     1044#define IS_TEXT_UNICODE_REVERSE_STATISTICS 0x0020
     1045#define IS_TEXT_UNICODE_REVERSE_CONTROLS   0x0040
     1046#define IS_TEXT_UNICODE_REVERSE_SIGNATURE  0x0080
     1047#define IS_TEXT_UNICODE_REVERSE_MASK       0x00F0
     1048#define IS_TEXT_UNICODE_ILLEGAL_CHARS      0x0100
     1049#define IS_TEXT_UNICODE_ODD_LENGTH         0x0200
     1050#define IS_TEXT_UNICODE_DBCS_LEADBYTE      0x0400
     1051#define IS_TEXT_UNICODE_NOT_UNICODE_MASK   0x0F00
     1052#define IS_TEXT_UNICODE_NULL_BYTES         0x1000
     1053#define IS_TEXT_UNICODE_NOT_ASCII_MASK     0xF000
     1054
     1055/* bird-end: from newer winnt.h */
     1056
     1057
    7811058
    7821059/* Error Masks */
     
    7901067 * Exception codes
    7911068 */
    792  
     1069
    7931070#define STATUS_SUCCESS                   0x00000000
    7941071#define STATUS_WAIT_0                    0x00000000
     
    7981075#define STATUS_PENDING                   0x00000103
    7991076
    800 #define STATUS_GUARD_PAGE_VIOLATION      0x80000001   
     1077#define STATUS_GUARD_PAGE_VIOLATION      0x80000001
    8011078#define STATUS_DATATYPE_MISALIGNMENT     0x80000002
    8021079#define STATUS_BREAKPOINT                0x80000003
     
    9601237#define STATUS_BAD_INHERITANCE_ACL       0xC000007D
    9611238#define STATUS_RANGE_NOT_LOCKED          0xC000007E
    962 #define STATUS_DISK_FULL                 0xC000007F 
     1239#define STATUS_DISK_FULL                 0xC000007F
    9631240#define STATUS_SERVER_DISABLED           0xC0000080
    9641241#define STATUS_SERVER_NOT_DISABLED       0xC0000081
     
    14931770#define ExceptionNestedException   2
    14941771#define ExceptionCollidedUnwind    3
    1495  
     1772
    14961773/*
    14971774 * Return values from filters in except() and from UnhandledExceptionFilter
    14981775 */
    1499  
     1776
    15001777#define EXCEPTION_EXECUTE_HANDLER        1
    15011778#define EXCEPTION_CONTINUE_SEARCH        0
     
    15151792#define EXCEPTION_CONTINUABLE        0
    15161793#define EXCEPTION_NONCONTINUABLE     EH_NONCONTINUABLE
    1517  
    1518 /*
    1519  * The exception record used by Win32 to give additional information 
     1794
     1795/*
     1796 * The exception record used by Win32 to give additional information
    15201797 * about exception to exception handlers.
    15211798 */
     
    15381815 * in except() and the UnhandledExceptionFilter().
    15391816 */
    1540  
    1541 typedef struct _EXCEPTION_POINTERS 
     1817
     1818typedef struct _EXCEPTION_POINTERS
    15421819{
    15431820  PEXCEPTION_RECORD  ExceptionRecord;
     
    15471824
    15481825/*
    1549  * The exception frame, used for registering exception handlers 
    1550  * Win32 cares only about this, but compilers generally emit 
     1826 * The exception frame, used for registering exception handlers
     1827 * Win32 cares only about this, but compilers generally emit
    15511828 * larger exception frames for their own use.
    15521829 */
     
    16201897/*
    16211898 * Here follows typedefs for security and tokens.
    1622  */ 
     1899 */
    16231900
    16241901/*
     
    16361913
    16371914typedef enum _TOKEN_INFORMATION_CLASS {
    1638   TokenUser = 1, 
    1639   TokenGroups, 
    1640   TokenPrivileges, 
    1641   TokenOwner, 
    1642   TokenPrimaryGroup, 
    1643   TokenDefaultDacl, 
    1644   TokenSource, 
    1645   TokenType, 
    1646   TokenImpersonationLevel, 
    1647   TokenStatistics 
    1648 } TOKEN_INFORMATION_CLASS; 
     1915  TokenUser = 1,
     1916  TokenGroups,
     1917  TokenPrivileges,
     1918  TokenOwner,
     1919  TokenPrimaryGroup,
     1920  TokenDefaultDacl,
     1921  TokenSource,
     1922  TokenType,
     1923  TokenImpersonationLevel,
     1924  TokenStatistics
     1925} TOKEN_INFORMATION_CLASS;
    16491926
    16501927#ifndef _SECURITY_DEFINED
     
    16821959
    16831960
    1684 /* 
    1685  * ACL 
     1961/*
     1962 * ACL
    16861963 */
    16871964
     
    17572034} SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
    17582035
    1759 #define SECURITY_DESCRIPTOR_MIN_LENGTH   (sizeof(SECURITY_DESCRIPTOR)) 
     2036#define SECURITY_DESCRIPTOR_MIN_LENGTH   (sizeof(SECURITY_DESCRIPTOR))
    17602037
    17612038
     
    17632040
    17642041
    1765 /* 
     2042/*
    17662043 * SID_AND_ATTRIBUTES
    17672044 */
     
    17692046
    17702047typedef struct _SID_AND_ATTRIBUTES {
    1771   PSID  Sid; 
    1772   DWORD Attributes; 
    1773 } SID_AND_ATTRIBUTES ; 
    1774  
     2048  PSID  Sid;
     2049  DWORD Attributes;
     2050} SID_AND_ATTRIBUTES ;
     2051
    17752052/* security entities */
    17762053#define SECURITY_NULL_RID                       (0x00000000L)
     
    17882065/* S-1-3 */
    17892066#define SECURITY_CREATOR_SID_AUTHORITY          {0,0,0,0,0,3}
    1790 #define SECURITY_CREATOR_OWNER_RID              (0x00000000L) 
     2067#define SECURITY_CREATOR_OWNER_RID              (0x00000000L)
    17912068#define SECURITY_CREATOR_GROUP_RID              (0x00000001L)
    17922069#define SECURITY_CREATOR_OWNER_SERVER_RID       (0x00000002L)
     
    17972074
    17982075/* S-1-5 */
    1799 #define SECURITY_NT_AUTHORITY                   {0,0,0,0,0,5} 
     2076#define SECURITY_NT_AUTHORITY                   {0,0,0,0,0,5}
    18002077#define SECURITY_DIALUP_RID                     0x00000001L
    18012078#define SECURITY_NETWORK_RID                    0x00000002L
     
    18262103
    18272104#define SECURITY_LOGON_IDS_RID_COUNT            (3L)
    1828  
     2105
    18292106/*
    18302107 * TOKEN_USER
     
    18322109
    18332110typedef struct _TOKEN_USER {
    1834   SID_AND_ATTRIBUTES User; 
    1835 } TOKEN_USER; 
     2111  SID_AND_ATTRIBUTES User;
     2112} TOKEN_USER;
    18362113
    18372114/*
     
    18402117
    18412118typedef struct _TOKEN_GROUPS  {
    1842   DWORD GroupCount; 
    1843   SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY]; 
    1844 } TOKEN_GROUPS, *PTOKEN_GROUPS; 
     2119  DWORD GroupCount;
     2120  SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY];
     2121} TOKEN_GROUPS, *PTOKEN_GROUPS;
    18452122
    18462123/*
     
    18812158
    18822159typedef struct _LUID_AND_ATTRIBUTES {
    1883   LUID   Luid; 
    1884   DWORD  Attributes; 
    1885 } LUID_AND_ATTRIBUTES; 
     2160  LUID   Luid;
     2161  DWORD  Attributes;
     2162} LUID_AND_ATTRIBUTES;
    18862163
    18872164/*
     
    19002177
    19012178typedef struct _TOKEN_PRIVILEGES {
    1902   DWORD PrivilegeCount; 
    1903   LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY]; 
    1904 } TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; 
     2179  DWORD PrivilegeCount;
     2180  LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
     2181} TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES;
    19052182
    19062183/*
     
    19092186
    19102187typedef struct _TOKEN_OWNER {
    1911   PSID Owner; 
    1912 } TOKEN_OWNER; 
     2188  PSID Owner;
     2189} TOKEN_OWNER;
    19132190
    19142191/*
     
    19172194
    19182195typedef struct _TOKEN_PRIMARY_GROUP {
    1919   PSID PrimaryGroup; 
    1920 } TOKEN_PRIMARY_GROUP; 
     2196  PSID PrimaryGroup;
     2197} TOKEN_PRIMARY_GROUP;
    19212198
    19222199
     
    19252202 */
    19262203
    1927 typedef struct _TOKEN_DEFAULT_DACL { 
    1928   PACL DefaultDacl; 
    1929 } TOKEN_DEFAULT_DACL; 
     2204typedef struct _TOKEN_DEFAULT_DACL {
     2205  PACL DefaultDacl;
     2206} TOKEN_DEFAULT_DACL;
    19302207
    19312208/*
     
    19452222
    19462223typedef enum tagTOKEN_TYPE {
    1947   TokenPrimary = 1, 
    1948   TokenImpersonation 
    1949 } TOKEN_TYPE; 
     2224  TokenPrimary = 1,
     2225  TokenImpersonation
     2226} TOKEN_TYPE;
    19502227
    19512228/*
     
    19542231
    19552232typedef enum _SECURITY_IMPERSONATION_LEVEL {
    1956   SecurityAnonymous, 
    1957   SecurityIdentification, 
    1958   SecurityImpersonation, 
    1959   SecurityDelegation 
    1960 } SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL; 
     2233  SecurityAnonymous,
     2234  SecurityIdentification,
     2235  SecurityImpersonation,
     2236  SecurityDelegation
     2237} SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL;
    19612238
    19622239
     
    19792256
    19802257typedef struct _TOKEN_STATISTICS {
    1981   LUID  TokenId; 
    1982   LUID  AuthenticationId; 
    1983   LARGE_INTEGER ExpirationTime; 
    1984   TOKEN_TYPE    TokenType; 
    1985   SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; 
    1986   DWORD DynamicCharged; 
    1987   DWORD DynamicAvailable; 
    1988   DWORD GroupCount; 
    1989   DWORD PrivilegeCount; 
    1990   LUID  ModifiedId; 
    1991 } TOKEN_STATISTICS; 
    1992 
    1993 /* 
    1994  *      ACLs of NT 
     2258  LUID  TokenId;
     2259  LUID  AuthenticationId;
     2260  LARGE_INTEGER ExpirationTime;
     2261  TOKEN_TYPE    TokenType;
     2262  SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
     2263  DWORD DynamicCharged;
     2264  DWORD DynamicAvailable;
     2265  DWORD GroupCount;
     2266  DWORD PrivilegeCount;
     2267  LUID  ModifiedId;
     2268} TOKEN_STATISTICS;
     2269
     2270/*
     2271 *      ACLs of NT
    19952272 */
    19962273
     
    20242301#define FAILED_ACCESS_ACE_FLAG          0x80
    20252302
    2026 /* different ACEs depending on AceType 
     2303/* different ACEs depending on AceType
    20272304 * SidStart marks the begin of a SID
    20282305 * so the thing finally looks like this:
     
    21232400#define THREAD_ALL_ACCESS          (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff)
    21242401
    2125 #define THREAD_BASE_PRIORITY_LOWRT  15 
    2126 #define THREAD_BASE_PRIORITY_MAX    2 
     2402#define THREAD_BASE_PRIORITY_LOWRT  15
     2403#define THREAD_BASE_PRIORITY_MAX    2
    21272404#define THREAD_BASE_PRIORITY_MIN   -2
    21282405#define THREAD_BASE_PRIORITY_IDLE  -15
     
    21742451#define FILE_ATTRIBUTE_OFFLINE          0x00001000L
    21752452#define FILE_NOTIFY_CHANGE_FILE_NAME    0x00000001L
    2176 #define FILE_NOTIFY_CHANGE_DIR_NAME     0x00000002L   
    2177 #define FILE_NOTIFY_CHANGE_ATTRIBUTES   0x00000004L   
    2178 #define FILE_NOTIFY_CHANGE_SIZE         0x00000008L   
    2179 #define FILE_NOTIFY_CHANGE_LAST_WRITE   0x00000010L   
    2180 #define FILE_NOTIFY_CHANGE_LAST_ACCESS  0x00000020L   
    2181 #define FILE_NOTIFY_CHANGE_CREATION     0x00000040L   
    2182 #define FILE_NOTIFY_CHANGE_SECURITY     0x00000100L   
    2183 #define FILE_ACTION_ADDED               0x00000001L   
    2184 #define FILE_ACTION_REMOVED             0x00000002L   
    2185 #define FILE_ACTION_MODIFIED            0x00000003L   
    2186 #define FILE_ACTION_RENAMED_OLD_NAME    0x00000004L   
    2187 #define FILE_ACTION_RENAMED_NEW_NAME    0x00000005L   
    2188 #define MAILSLOT_NO_MESSAGE             ((DWORD)-1) 
    2189 #define MAILSLOT_WAIT_FOREVER           ((DWORD)-1) 
     2453#define FILE_NOTIFY_CHANGE_DIR_NAME     0x00000002L
     2454#define FILE_NOTIFY_CHANGE_ATTRIBUTES   0x00000004L
     2455#define FILE_NOTIFY_CHANGE_SIZE         0x00000008L
     2456#define FILE_NOTIFY_CHANGE_LAST_WRITE   0x00000010L
     2457#define FILE_NOTIFY_CHANGE_LAST_ACCESS  0x00000020L
     2458#define FILE_NOTIFY_CHANGE_CREATION     0x00000040L
     2459#define FILE_NOTIFY_CHANGE_SECURITY     0x00000100L
     2460#define FILE_ACTION_ADDED               0x00000001L
     2461#define FILE_ACTION_REMOVED             0x00000002L
     2462#define FILE_ACTION_MODIFIED            0x00000003L
     2463#define FILE_ACTION_RENAMED_OLD_NAME    0x00000004L
     2464#define FILE_ACTION_RENAMED_NEW_NAME    0x00000005L
     2465#define MAILSLOT_NO_MESSAGE             ((DWORD)-1)
     2466#define MAILSLOT_WAIT_FOREVER           ((DWORD)-1)
    21902467
    21912468/* File alignments (NT) */
     
    22452522
    22462523
    2247 typedef enum _CM_SERVICE_NODE_TYPE 
     2524typedef enum _CM_SERVICE_NODE_TYPE
    22482525{
    22492526  DriverType               = SERVICE_KERNEL_DRIVER,
     
    22552532} SERVICE_NODE_TYPE;
    22562533
    2257 typedef enum _CM_SERVICE_LOAD_TYPE 
     2534typedef enum _CM_SERVICE_LOAD_TYPE
    22582535{
    22592536  BootLoad    = SERVICE_BOOT_START,
     
    22642541} SERVICE_LOAD_TYPE;
    22652542
    2266 typedef enum _CM_ERROR_CONTROL_TYPE 
     2543typedef enum _CM_ERROR_CONTROL_TYPE
    22672544{
    22682545  IgnoreError   = SERVICE_ERROR_IGNORE,
     
    23932670//#include "guiddef.h"
    23942671
    2395 typedef struct _RTL_CRITICAL_SECTION_DEBUG 
     2672typedef struct _RTL_CRITICAL_SECTION_DEBUG
    23962673{
    23972674  WORD   Type;
     
    24622739
    24632740
    2464 #endif 
     2741#endif
Note: See TracChangeset for help on using the changeset viewer.