Changeset 10421 for trunk/include
- Timestamp:
- Jan 29, 2004, 3:12:09 PM (22 years ago)
- Location:
- trunk/include/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winnls.h
r9973 r10421 172 172 #define WC_DEFAULTCHECK 0x00000100 173 173 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, 0x57200 */201 #define LANG_NEUTRAL 0x00202 #define LANG_AFRIKAANS 0x36203 #define LANG_ALBANIAN 0x1c204 #define LANG_ARABIC 0x01205 #define LANG_ARMENIAN 0x2b206 #define LANG_ASSAMESE 0x4d207 #define LANG_AZERI 0x2c208 #define LANG_BASQUE 0x2d209 #define LANG_BENGALI 0x45210 #define LANG_BULGARIAN 0x02211 #define LANG_BYELORUSSIAN 0x23212 #define LANG_CATALAN 0x03213 #define LANG_CHINESE 0x04214 #define LANG_SERBO_CROATIAN 0x1a215 #define LANG_CROATIAN LANG_SERBO_CROATIAN216 #define LANG_SERBIAN LANG_SERBO_CROATIAN217 #define LANG_CZECH 0x05218 #define LANG_DANISH 0x06219 #define LANG_DUTCH 0x13220 #define LANG_ENGLISH 0x09221 #define LANG_ESTONIAN 0x25222 #define LANG_FAEROESE 0x38223 #define LANG_FARSI 0x29224 #define LANG_FINNISH 0x0b225 #define LANG_FRENCH 0x0c226 #define LANG_GAELIC 0x3c227 #define LANG_GEORGIAN 0x37228 #define LANG_GERMAN 0x07229 #define LANG_GREEK 0x08230 #define LANG_GUJARATI 0x47231 #define LANG_HEBREW 0x0D232 #define LANG_HINDI 0x39233 #define LANG_HUNGARIAN 0x0e234 #define LANG_ICELANDIC 0x0f235 #define LANG_INDONESIAN 0x21236 #define LANG_ITALIAN 0x10237 #define LANG_JAPANESE 0x11238 #define LANG_KANNADA 0x4b239 #define LANG_KAZAKH 0x3f240 #define LANG_KONKANI 0x57241 #define LANG_KOREAN 0x12242 #define LANG_LATVIAN 0x26243 #define LANG_LITHUANIAN 0x27244 #define LANG_MACEDONIAN 0x2f245 #define LANG_MALAY 0x3e246 #define LANG_MALAYALAM 0x4c247 #define LANG_MALTESE 0x3a248 #define LANG_MAORI 0x28249 #define LANG_MARATHI 0x4e250 #define LANG_NORWEGIAN 0x14251 #define LANG_ORIYA 0x48252 #define LANG_POLISH 0x15253 #define LANG_PORTUGUESE 0x16254 #define LANG_PUNJABI 0x46255 #define LANG_RHAETO_ROMANCE 0x17256 #define LANG_ROMANIAN 0x18257 #define LANG_RUSSIAN 0x19258 #define LANG_SAAMI 0x3b259 #define LANG_SANSKRIT 0x4f260 #define LANG_SLOVAK 0x1b261 #define LANG_SLOVENIAN 0x24262 #define LANG_SORBIAN 0x2e263 #define LANG_SPANISH 0x0a264 #define LANG_SUTU 0x30265 #define LANG_SWAHILI 0x41266 #define LANG_SWEDISH 0x1d267 #define LANG_TAMIL 0x49268 #define LANG_TATAR 0x44269 #define LANG_TELUGU 0x4a270 #define LANG_THAI 0x1e271 #define LANG_TSONGA 0x31272 #define LANG_TSWANA 0x32273 #define LANG_TURKISH 0x1f274 #define LANG_UKRAINIAN 0x22275 #define LANG_URDU 0x20276 #define LANG_UZBEK 0x43277 #define LANG_VENDA 0x33278 #define LANG_VIETNAMESE 0x2a279 #define LANG_XHOSA 0x34280 #define LANG_ZULU 0x35281 /* non standard; keep the number high enough (but < 0xff) */282 #define LANG_ESPERANTO 0x8f283 #define LANG_WALON 0x90284 #define LANG_CORNISH 0x91285 #define LANG_WELSH 0x92286 #define LANG_BRETON 0x93287 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 0x01294 #define SUBLANG_ARABIC_SAUDI_ARABIA 0x01295 #define SUBLANG_ARABIC_IRAQ 0x02296 #define SUBLANG_ARABIC_EGYPT 0x03297 #define SUBLANG_ARABIC_LIBYA 0x04298 #define SUBLANG_ARABIC_ALGERIA 0x05299 #define SUBLANG_ARABIC_MOROCCO 0x06300 #define SUBLANG_ARABIC_TUNISIA 0x07301 #define SUBLANG_ARABIC_OMAN 0x08302 #define SUBLANG_ARABIC_YEMEN 0x09303 #define SUBLANG_ARABIC_SYRIA 0x0a304 #define SUBLANG_ARABIC_JORDAN 0x0b305 #define SUBLANG_ARABIC_LEBANON 0x0c306 #define SUBLANG_ARABIC_KUWAIT 0x0d307 #define SUBLANG_ARABIC_UAE 0x0e308 #define SUBLANG_ARABIC_BAHRAIN 0x0f309 #define SUBLANG_ARABIC_QATAR 0x10310 #define SUBLANG_CHINESE_TRADITIONAL 0x01311 #define SUBLANG_CHINESE_SIMPLIFIED 0x02312 #define SUBLANG_CHINESE_HONGKONG 0x03313 #define SUBLANG_CHINESE_SINGAPORE 0x04314 #define SUBLANG_CHINESE_MACAU 0x05315 #define SUBLANG_DUTCH 0x01316 #define SUBLANG_DUTCH_BELGIAN 0x02317 #define SUBLANG_DUTCH_SURINAM 0x03318 #define SUBLANG_ENGLISH_US 0x01319 #define SUBLANG_ENGLISH_UK 0x02320 #define SUBLANG_ENGLISH_AUS 0x03321 #define SUBLANG_ENGLISH_CAN 0x04322 #define SUBLANG_ENGLISH_NZ 0x05323 #define SUBLANG_ENGLISH_EIRE 0x06324 #define SUBLANG_ENGLISH_SAFRICA 0x07325 #define SUBLANG_ENGLISH_JAMAICA 0x08326 #define SUBLANG_ENGLISH_CARRIBEAN 0x09327 #define SUBLANG_ENGLISH_BELIZE 0x0a328 #define SUBLANG_ENGLISH_TRINIDAD 0x0b329 #define SUBLANG_ENGLISH_ZIMBABWE 0x0c330 #define SUBLANG_ENGLISH_PHILIPPINES 0x0d331 #define SUBLANG_FRENCH 0x01332 #define SUBLANG_FRENCH_BELGIAN 0x02333 #define SUBLANG_FRENCH_CANADIAN 0x03334 #define SUBLANG_FRENCH_SWISS 0x04335 #define SUBLANG_FRENCH_LUXEMBOURG 0x05336 #define SUBLANG_FRENCH_MONACO 0x06337 #define SUBLANG_GERMAN 0x01338 #define SUBLANG_GERMAN_SWISS 0x02339 #define SUBLANG_GERMAN_AUSTRIAN 0x03340 #define SUBLANG_GERMAN_LUXEMBOURG 0x04341 #define SUBLANG_GERMAN_LIECHTENSTEIN 0x05342 #define SUBLANG_ITALIAN 0x01343 #define SUBLANG_ITALIAN_SWISS 0x02344 #define SUBLANG_KOREAN 0x01345 #define SUBLANG_KOREAN_JOHAB 0x02346 #define SUBLANG_NORWEGIAN_BOKMAL 0x01347 #define SUBLANG_NORWEGIAN_NYNORSK 0x02348 #define SUBLANG_PORTUGUESE 0x02349 #define SUBLANG_PORTUGUESE_BRAZILIAN 0x01350 #define SUBLANG_SPANISH 0x01351 #define SUBLANG_SPANISH_MEXICAN 0x02352 #define SUBLANG_SPANISH_MODERN 0x03353 #define SUBLANG_SPANISH_GUATEMALA 0x04354 #define SUBLANG_SPANISH_COSTARICA 0x05355 #define SUBLANG_SPANISH_PANAMA 0x06356 #define SUBLANG_SPANISH_DOMINICAN 0x07357 #define SUBLANG_SPANISH_VENEZUELA 0x08358 #define SUBLANG_SPANISH_COLOMBIA 0x09359 #define SUBLANG_SPANISH_PERU 0x0a360 #define SUBLANG_SPANISH_ARGENTINA 0x0b361 #define SUBLANG_SPANISH_ECUADOR 0x0c362 #define SUBLANG_SPANISH_CHILE 0x0d363 #define SUBLANG_SPANISH_URUGUAY 0x0e364 #define SUBLANG_SPANISH_PARAGUAY 0x0f365 #define SUBLANG_SPANISH_BOLIVIA 0x10366 #define SUBLANG_SPANISH_EL_SALVADOR 0x11367 #define SUBLANG_SPANISH_HONDURAS 0x12368 #define SUBLANG_SPANISH_NICARAGUA 0x13369 #define SUBLANG_SPANISH_PUERTO_RICO 0x14370 /* FIXME: I don't know the symbolic names for those */371 #define SUBLANG_ROMANIAN 0x01372 #define SUBLANG_ROMANIAN_MOLDAVIA 0x02373 #define SUBLANG_RUSSIAN 0x01374 #define SUBLANG_RUSSIAN_MOLDAVIA 0x02375 #define SUBLANG_CROATIAN 0x01376 #define SUBLANG_SERBIAN 0x02377 #define SUBLANG_SERBIAN_LATIN 0x03378 #define SUBLANG_SWEDISH 0x01379 #define SUBLANG_SWEDISH_FINLAND 0x02380 #define SUBLANG_LITHUANIAN 0x01381 #define SUBLANG_LITHUANIAN_CLASSIC 0x02382 #define SUBLANG_AZERI 0x01383 #define SUBLANG_AZERI_CYRILLIC 0x02384 #define SUBLANG_GAELIC 0x01385 #define SUBLANG_GAELIC_SCOTTISH 0x02386 #define SUBLANG_GAELIC_MANX 0x03387 #define SUBLANG_MALAY 0x01388 #define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02389 #define SUBLANG_UZBEK 0x01390 #define SUBLANG_UZBEK_CYRILLIC 0x02391 #define SUBLANG_URDU_PAKISTAN 0x01392 393 /* Sort definitions */394 #define SORT_DEFAULT 0x0395 #define SORT_JAPANESE_XJIS 0x0396 #define SORT_JAPANESE_UNICODE 0x1397 #define SORT_CHINESE_BIG5 0x0398 #define SORT_CHINESE_UNICODE 0x1399 #define SORT_KOREAN_KSC 0x0400 #define SORT_KOREAN_UNICODE 0x1401 402 403 174 /* Locale Dependent Mapping Flags */ 404 175 #define LCMAP_LOWERCASE 0x00000100 /* lower case letters */ -
trunk/include/win/winnt.h
r9969 r10421 11 11 12 12 /* Defines */ 13 14 #define UNREFERENCED_PARAMETER(a)15 13 16 14 /* Argument 1 passed to the DllEntryProc. */ … … 187 185 DWORD ControlWord; 188 186 DWORD StatusWord; 189 DWORD TagWord; 187 DWORD TagWord; 190 188 DWORD ErrorOffset; 191 189 DWORD ErrorSelector; 192 190 DWORD DataOffset; 193 DWORD DataSelector; 191 DWORD DataSelector; 194 192 BYTE RegisterArea[SIZE_OF_80387_REGISTERS]; 195 193 DWORD Cr0NpxState; … … 215 213 DWORD SegFs; 216 214 DWORD SegEs; 217 DWORD SegDs; 215 DWORD SegDs; 218 216 219 217 /* These are selected by CONTEXT_INTEGER */ … … 221 219 DWORD Esi; 222 220 DWORD Ebx; 223 DWORD Edx; 221 DWORD Edx; 224 222 DWORD Ecx; 225 223 DWORD Eax; 226 224 227 225 /* These are selected by CONTEXT_CONTROL */ 228 DWORD Ebp; 226 DWORD Ebp; 229 227 DWORD Eip; 230 228 DWORD SegCs; … … 263 261 264 262 #define CONTEXT_ALPHA 0x00020000 265 263 266 264 #define CONTEXT_CONTROL (CONTEXT_ALPHA | 0x00000001L) 267 265 #define CONTEXT_FLOATING_POINT (CONTEXT_ALPHA | 0x00000002L) … … 578 576 #ifdef __sparc__ 579 577 580 /* 581 * FIXME: 578 /* 579 * FIXME: 582 580 * 583 * There is no official CONTEXT structure defined for the SPARC 581 * There is no official CONTEXT structure defined for the SPARC 584 582 * architecture, so I just made one up. 585 583 * … … 591 589 * 592 590 * The layout follows the Solaris 'prgregset_t' structure. 593 * 594 */ 591 * 592 */ 595 593 596 594 #define CONTEXT_SPARC 0x10000000 … … 654 652 #endif 655 653 654 656 655 #if !defined(CONTEXT_FULL) && !defined(RC_INVOKED) 657 656 #error You need to define a CONTEXT for your CPU … … 700 699 #define DL_reg(context) (*(BYTE*)&EDX_reg(context)) 701 700 #define DH_reg(context) (*((BYTE*)&EDX_reg(context)+1)) 702 701 703 702 #define SET_CFLAG(context) (EFL_reg(context) |= 0x0001) 704 703 #define RESET_CFLAG(context) (EFL_reg(context) &= ~0x0001) … … 773 772 # define GET_IP(context) ((LPVOID)(context)->pc) 774 773 #endif 775 774 776 775 #if !defined(GET_IP) && !defined(RC_INVOKED) 777 776 # error You must define GET_IP for this CPU … … 779 778 780 779 #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 781 1058 782 1059 /* Error Masks */ … … 790 1067 * Exception codes 791 1068 */ 792 1069 793 1070 #define STATUS_SUCCESS 0x00000000 794 1071 #define STATUS_WAIT_0 0x00000000 … … 798 1075 #define STATUS_PENDING 0x00000103 799 1076 800 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 1077 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 801 1078 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002 802 1079 #define STATUS_BREAKPOINT 0x80000003 … … 960 1237 #define STATUS_BAD_INHERITANCE_ACL 0xC000007D 961 1238 #define STATUS_RANGE_NOT_LOCKED 0xC000007E 962 #define STATUS_DISK_FULL 0xC000007F 1239 #define STATUS_DISK_FULL 0xC000007F 963 1240 #define STATUS_SERVER_DISABLED 0xC0000080 964 1241 #define STATUS_SERVER_NOT_DISABLED 0xC0000081 … … 1493 1770 #define ExceptionNestedException 2 1494 1771 #define ExceptionCollidedUnwind 3 1495 1772 1496 1773 /* 1497 1774 * Return values from filters in except() and from UnhandledExceptionFilter 1498 1775 */ 1499 1776 1500 1777 #define EXCEPTION_EXECUTE_HANDLER 1 1501 1778 #define EXCEPTION_CONTINUE_SEARCH 0 … … 1515 1792 #define EXCEPTION_CONTINUABLE 0 1516 1793 #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 1520 1797 * about exception to exception handlers. 1521 1798 */ … … 1538 1815 * in except() and the UnhandledExceptionFilter(). 1539 1816 */ 1540 1541 typedef struct _EXCEPTION_POINTERS 1817 1818 typedef struct _EXCEPTION_POINTERS 1542 1819 { 1543 1820 PEXCEPTION_RECORD ExceptionRecord; … … 1547 1824 1548 1825 /* 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 1551 1828 * larger exception frames for their own use. 1552 1829 */ … … 1620 1897 /* 1621 1898 * Here follows typedefs for security and tokens. 1622 */ 1899 */ 1623 1900 1624 1901 /* … … 1636 1913 1637 1914 typedef 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; 1649 1926 1650 1927 #ifndef _SECURITY_DEFINED … … 1682 1959 1683 1960 1684 /* 1685 * ACL 1961 /* 1962 * ACL 1686 1963 */ 1687 1964 … … 1757 2034 } SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR; 1758 2035 1759 #define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR)) 2036 #define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR)) 1760 2037 1761 2038 … … 1763 2040 1764 2041 1765 /* 2042 /* 1766 2043 * SID_AND_ATTRIBUTES 1767 2044 */ … … 1769 2046 1770 2047 typedef 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 1775 2052 /* security entities */ 1776 2053 #define SECURITY_NULL_RID (0x00000000L) … … 1788 2065 /* S-1-3 */ 1789 2066 #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) 1791 2068 #define SECURITY_CREATOR_GROUP_RID (0x00000001L) 1792 2069 #define SECURITY_CREATOR_OWNER_SERVER_RID (0x00000002L) … … 1797 2074 1798 2075 /* 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} 1800 2077 #define SECURITY_DIALUP_RID 0x00000001L 1801 2078 #define SECURITY_NETWORK_RID 0x00000002L … … 1826 2103 1827 2104 #define SECURITY_LOGON_IDS_RID_COUNT (3L) 1828 2105 1829 2106 /* 1830 2107 * TOKEN_USER … … 1832 2109 1833 2110 typedef struct _TOKEN_USER { 1834 SID_AND_ATTRIBUTES User; 1835 } TOKEN_USER; 2111 SID_AND_ATTRIBUTES User; 2112 } TOKEN_USER; 1836 2113 1837 2114 /* … … 1840 2117 1841 2118 typedef 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; 1845 2122 1846 2123 /* … … 1881 2158 1882 2159 typedef struct _LUID_AND_ATTRIBUTES { 1883 LUID Luid; 1884 DWORD Attributes; 1885 } LUID_AND_ATTRIBUTES; 2160 LUID Luid; 2161 DWORD Attributes; 2162 } LUID_AND_ATTRIBUTES; 1886 2163 1887 2164 /* … … 1900 2177 1901 2178 typedef 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; 1905 2182 1906 2183 /* … … 1909 2186 1910 2187 typedef struct _TOKEN_OWNER { 1911 PSID Owner; 1912 } TOKEN_OWNER; 2188 PSID Owner; 2189 } TOKEN_OWNER; 1913 2190 1914 2191 /* … … 1917 2194 1918 2195 typedef struct _TOKEN_PRIMARY_GROUP { 1919 PSID PrimaryGroup; 1920 } TOKEN_PRIMARY_GROUP; 2196 PSID PrimaryGroup; 2197 } TOKEN_PRIMARY_GROUP; 1921 2198 1922 2199 … … 1925 2202 */ 1926 2203 1927 typedef struct _TOKEN_DEFAULT_DACL { 1928 PACL DefaultDacl; 1929 } TOKEN_DEFAULT_DACL; 2204 typedef struct _TOKEN_DEFAULT_DACL { 2205 PACL DefaultDacl; 2206 } TOKEN_DEFAULT_DACL; 1930 2207 1931 2208 /* … … 1945 2222 1946 2223 typedef enum tagTOKEN_TYPE { 1947 TokenPrimary = 1, 1948 TokenImpersonation 1949 } TOKEN_TYPE; 2224 TokenPrimary = 1, 2225 TokenImpersonation 2226 } TOKEN_TYPE; 1950 2227 1951 2228 /* … … 1954 2231 1955 2232 typedef 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; 1961 2238 1962 2239 … … 1979 2256 1980 2257 typedef 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 1995 2272 */ 1996 2273 … … 2024 2301 #define FAILED_ACCESS_ACE_FLAG 0x80 2025 2302 2026 /* different ACEs depending on AceType 2303 /* different ACEs depending on AceType 2027 2304 * SidStart marks the begin of a SID 2028 2305 * so the thing finally looks like this: … … 2123 2400 #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff) 2124 2401 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 2127 2404 #define THREAD_BASE_PRIORITY_MIN -2 2128 2405 #define THREAD_BASE_PRIORITY_IDLE -15 … … 2174 2451 #define FILE_ATTRIBUTE_OFFLINE 0x00001000L 2175 2452 #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) 2190 2467 2191 2468 /* File alignments (NT) */ … … 2245 2522 2246 2523 2247 typedef enum _CM_SERVICE_NODE_TYPE 2524 typedef enum _CM_SERVICE_NODE_TYPE 2248 2525 { 2249 2526 DriverType = SERVICE_KERNEL_DRIVER, … … 2255 2532 } SERVICE_NODE_TYPE; 2256 2533 2257 typedef enum _CM_SERVICE_LOAD_TYPE 2534 typedef enum _CM_SERVICE_LOAD_TYPE 2258 2535 { 2259 2536 BootLoad = SERVICE_BOOT_START, … … 2264 2541 } SERVICE_LOAD_TYPE; 2265 2542 2266 typedef enum _CM_ERROR_CONTROL_TYPE 2543 typedef enum _CM_ERROR_CONTROL_TYPE 2267 2544 { 2268 2545 IgnoreError = SERVICE_ERROR_IGNORE, … … 2393 2670 //#include "guiddef.h" 2394 2671 2395 typedef struct _RTL_CRITICAL_SECTION_DEBUG 2672 typedef struct _RTL_CRITICAL_SECTION_DEBUG 2396 2673 { 2397 2674 WORD Type; … … 2462 2739 2463 2740 2464 #endif 2741 #endif
Note:
See TracChangeset
for help on using the changeset viewer.