winnt.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 1,791 行 · 第 1/5 页

H
1,791
字号
#define SUBLANG_GERMAN_SWISS	0x02
#define SUBLANG_GERMAN_AUSTRIAN	0x03
#define SUBLANG_GERMAN_LUXEMBOURG	0x04
#define SUBLANG_GERMAN_LIECHTENSTEIN	0x05
#define SUBLANG_GREEK_GREECE	0x01
#define SUBLANG_GREENLANDIC_GREENLAND	0x01
#define SUBLANG_GUJARATI_INDIA	0x01
#define SUBLANG_HAUSA_NIGERIA	0x01
#define SUBLANG_HEBREW_ISRAEL	0x01
#define SUBLANG_HINDI_INDIA	0x01
#define SUBLANG_HUNGARIAN_HUNGARY	0x01
#define SUBLANG_ICELANDIC_ICELAND	0x01
#define SUBLANG_IGBO_NIGERIA	0x01
#define SUBLANG_INDONESIAN_INDONESIA	0x01
#define SUBLANG_INUKTITUT_CANADA	0x01
#define SUBLANG_INUKTITUT_CANADA_LATIN	0x01
#define SUBLANG_IRISH_IRELAND	0x01
#define SUBLANG_ITALIAN	0x01
#define SUBLANG_ITALIAN_SWISS	0x02
#define SUBLANG_JAPANESE_JAPAN	0x01
#define SUBLANG_KASHMIRI_INDIA	0x02
#define SUBLANG_KASHMIRI_SASIA	0x02
#define SUBLANG_KAZAK_KAZAKHSTAN	0x01
#define SUBLANG_KHMER_CAMBODIA	0x01
#define SUBLANG_KICHE_GUATEMALA	0x01
#define SUBLANG_KINYARWANDA_RWANDA	0x01
#define SUBLANG_KONKANI_INDIA	0x01
#define SUBLANG_KOREAN	0x01
#define SUBLANG_KYRGYZ_KYRGYZSTAN	0x01
#define SUBLANG_LAO_LAO_PDR	0x01
#define SUBLANG_LATVIAN_LATVIA	0x01
#if (WINVER >= 0x0600)
#define SUBLANG_LITHUANIAN_LITHUANIA	0x01
#endif
#define SUBLANG_LITHUANIAN	0x01
#define SUBLANG_LOWER_SORBIAN_GERMANY	0x01
#define SUBLANG_LUXEMBOURGISH_LUXEMBOURG	0x01
#define SUBLANG_MACEDONIAN_MACEDONIA	0x01
#define SUBLANG_MALAY_MALAYSIA	0x01
#define SUBLANG_MALAY_BRUNEI_DARUSSALAM	0x02
#define SUBLANG_MALAYALAM_INDIA	0x01
#define SUBLANG_MALTESE_MALTA	0x01
#define SUBLANG_MAORI_NEW_ZEALAND	0x01
#define SUBLANG_MAPUDUNGUN_CHILE	0x01
#define SUBLANG_MARATHI_INDIA	0x01
#define SUBLANG_MOHAWK_MOHAWK	0x01
#define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA	0x01
#define SUBLANG_MONGOLIAN_PRC	0x02
#define SUBLANG_NEPALI_NEPAL	0x01
#define SUBLANG_NEPALI_INDIA	0x02
#define SUBLANG_NORWEGIAN_BOKMAL	0x01
#define SUBLANG_NORWEGIAN_NYNORSK	0x02
#define SUBLANG_OCCITAN_FRANCE	0x01
#define SUBLANG_ORIYA_INDIA	0x01
#define SUBLANG_PASHTO_AFGHANISTAN	0x01
#define SUBLANG_PERSIAN_IRAN	0x01
#define SUBLANG_POLISH_POLAND	0x01
#define SUBLANG_PORTUGUESE_BRAZILIAN	0x01
#if (WINVER >= 0x0600)
#define SUBLANG_PORTUGUESE_PORTUGAL	0x02
#endif
#define SUBLANG_PORTUGUESE	0x02
#define SUBLANG_PUNJABI_INDIA	0x01
#define SUBLANG_QUECHUA_BOLIVIA	0x01
#define SUBLANG_QUECHUA_ECUADOR	0x02
#define SUBLANG_QUECHUA_PERU	0x03
#define SUBLANG_ROMANIAN_ROMANIA	0x01
#define SUBLANG_ROMANSH_SWITZERLAND	0x01
#define SUBLANG_RUSSIAN_RUSSIA	0x01
#define SUBLANG_SAMI_NORTHERN_NORWAY	0x01
#define SUBLANG_SAMI_NORTHERN_SWEDEN	0x02
#define SUBLANG_SAMI_NORTHERN_FINLAND	0x03
#define SUBLANG_SAMI_LULE_NORWAY	0x04
#define SUBLANG_SAMI_LULE_SWEDEN	0x05
#define SUBLANG_SAMI_SOUTHERN_NORWAY	0x06
#define SUBLANG_SAMI_SOUTHERN_SWEDEN	0x07
#define SUBLANG_SAMI_SKOLT_FINLAND	0x03
#define SUBLANG_SAMI_INARI_FINLAND	0x03
#define SUBLANG_SANSKRIT_INDIA	0x01
#define SUBLANG_SERBIAN_LATIN	0x02
#define SUBLANG_SERBIAN_CYRILLIC	0x03
#define SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_LATIN	0x06
#define SUBLANG_SERBIAN_BOSNIA_HERZEGOVINA_CYRILLIC	0x07
#define SUBLANG_SINDHI_AFGHANISTAN	0x02
#define SUBLANG_SINHALESE_SRI_LANKA	0x01
#define SUBLANG_SOTHO_NORTHERN_SOUTH_AFRICA	0x01
#define SUBLANG_SLOVAK_SLOVAKIA	0x01
#define SUBLANG_SLOVENIAN_SLOVENIA	0x01
#define SUBLANG_SPANISH	0x01
#define SUBLANG_SPANISH_MEXICAN	0x02
#define SUBLANG_SPANISH_MODERN	0x03
#define SUBLANG_SPANISH_GUATEMALA	0x04
#define SUBLANG_SPANISH_COSTA_RICA	0x05
#define SUBLANG_SPANISH_PANAMA	0x06
#define SUBLANG_SPANISH_DOMINICAN_REPUBLIC	0x07
#define SUBLANG_SPANISH_VENEZUELA	0x08
#define SUBLANG_SPANISH_COLOMBIA	0x09
#define SUBLANG_SPANISH_PERU	0x0a
#define SUBLANG_SPANISH_ARGENTINA	0x0b
#define SUBLANG_SPANISH_ECUADOR	0x0c
#define SUBLANG_SPANISH_CHILE	0x0d
#define SUBLANG_SPANISH_URUGUAY	0x0e
#define SUBLANG_SPANISH_PARAGUAY	0x0f
#define SUBLANG_SPANISH_BOLIVIA	0x10
#define SUBLANG_SPANISH_EL_SALVADOR	0x11
#define SUBLANG_SPANISH_HONDURAS	0x12
#define SUBLANG_SPANISH_NICARAGUA	0x13
#define SUBLANG_SPANISH_PUERTO_RICO	0x14
#define SUBLANG_SPANISH_US	0x15
#if (WINVER >= 0x0600)
#define SUBLANG_SWEDISH_SWEDEN	0x01
#endif
#define SUBLANG_SWEDISH	0x01
#define SUBLANG_SWEDISH_FINLAND	0x02
#define SUBLANG_SYRIAC	0x01
#define SUBLANG_TAJIK_TAJIKISTAN	0x01
#define SUBLANG_TAMAZIGHT_ALGERIA_LATIN	0x02
#define SUBLANG_TAMIL_INDIA	0x01
#define SUBLANG_TATAR_RUSSIA	0x01
#define SUBLANG_TELUGU_INDIA	0x01
#define SUBLANG_THAI_THAILAND	0x01
#define SUBLANG_TIBETAN_PRC	0x01
#define SUBLANG_TIBETAN_BHUTAN	0x01
#define SUBLANG_TIGRIGNA_ERITREA	0x01
#define SUBLANG_TSWANA_SOUTH_AFRICA	0x01
#define SUBLANG_TURKISH_TURKEY	0x01
#define SUBLANG_TURKMEN_TURKMENISTAN	0x01
#define SUBLANG_UIGHUR_PRC	0x01
#define SUBLANG_UKRAINIAN_UKRAINE	0x01
#define SUBLANG_UPPER_SORBIAN_GERMANY	0x01
#define SUBLANG_URDU_PAKISTAN	0x01
#define SUBLANG_URDU_INDIA	0x02
#define SUBLANG_UZBEK_LATIN	0x01
#define SUBLANG_UZBEK_CYRILLIC	0x02
#define SUBLANG_VIETNAMESE_VIETNAM	0x01
#define SUBLANG_WELSH_UNITED_KINGDOM	0x01
#define SUBLANG_WOLOF_SENEGAL	0x01
#define SUBLANG_YORUBA_NIGERIA	0x01
#define SUBLANG_XHOSA_SOUTH_AFRICA	0x01
#define SUBLANG_YAKUT_RUSSIA	0x01
#define SUBLANG_YI_PRC	0x01
#define SUBLANG_ZULU_SOUTH_AFRICA	0x01
#define NLS_VALID_LOCALE_MASK	1048575
#define SORT_DEFAULT	0
#define SORT_JAPANESE_XJIS	0
#define SORT_JAPANESE_UNICODE	1
#define SORT_CHINESE_BIG5	0
#define SORT_CHINESE_PRCP	0
#define SORT_CHINESE_UNICODE	1
#define SORT_CHINESE_PRC	2
#define SORT_CHINESE_BOPOMOFO	3
#define SORT_KOREAN_KSC	0
#define SORT_KOREAN_UNICODE	1
#define SORT_GERMAN_PHONE_BOOK	1
#define SORT_HUNGARIAN_DEFAULT	0
#define SORT_HUNGARIAN_TECHNICAL	1
#define SORT_GEORGIAN_TRADITIONAL	0
#define SORT_GEORGIAN_MODERN	1
#define MAKELANGID(p,s)	((((WORD)(s))<<10)|(WORD)(p))
#define MAKELCID(l,s) ((DWORD)((((DWORD)((WORD)(s)))<<16)|((DWORD)((WORD)(l)))))
#define PRIMARYLANGID(l)	((WORD)(l)&0x3ff)
#define SORTIDFROMLCID(l)	((WORD)((((DWORD)(l))&NLS_VALID_LOCALE_MASK)>>16))
#define SORTVERSIONFROMLCID(l) ((WORD)((((DWORD)(l))>>20)&0xf))
#define SUBLANGID(l)	((WORD)(l)>>10)
#define LANGIDFROMLCID(l)	((WORD)(l))
#define LANG_SYSTEM_DEFAULT	MAKELANGID(LANG_NEUTRAL,SUBLANG_SYS_DEFAULT)
#define LANG_USER_DEFAULT	MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT)
#define LOCALE_NEUTRAL	MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT)
#define ACL_REVISION	2
#define ACL_REVISION_DS 4
#define ACL_REVISION1 1
#define ACL_REVISION2 2
#define ACL_REVISION3 3
#define ACL_REVISION4 4
#define MIN_ACL_REVISION 2
#define MAX_ACL_REVISION 4
#define MINCHAR	0x80
#define MAXCHAR	0x7f
#define MINSHORT	0x8000
#define MAXSHORT	0x7fff
#define MINLONG	0x80000000
#define MAXLONG	0x7fffffff
#define MAXBYTE	0xff
#define MAXWORD	0xffff
#define MAXDWORD	0xffffffff
#define PROCESSOR_INTEL_386 386
#define PROCESSOR_INTEL_486 486
#define PROCESSOR_INTEL_PENTIUM 586
#define PROCESSOR_MIPS_R4000 4000
#define PROCESSOR_ALPHA_21064 21064
#define PROCESSOR_INTEL_IA64 2200
#define PROCESSOR_ARCHITECTURE_INTEL 0
#define PROCESSOR_ARCHITECTURE_MIPS 1
#define PROCESSOR_ARCHITECTURE_ALPHA 2
#define PROCESSOR_ARCHITECTURE_PPC 3
#define PROCESSOR_ARCHITECTURE_SHX 4
#define PROCESSOR_ARCHITECTURE_ARM 5
#define PROCESSOR_ARCHITECTURE_IA64 6
#define PROCESSOR_ARCHITECTURE_ALPHA64 7
#define PROCESSOR_ARCHITECTURE_MSIL 8
#define PROCESSOR_ARCHITECTURE_AMD64 9
#define PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 10
#define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
#define PF_FLOATING_POINT_PRECISION_ERRATA 0
#define PF_FLOATING_POINT_EMULATED 1
#define PF_COMPARE_EXCHANGE_DOUBLE 2
#define PF_MMX_INSTRUCTIONS_AVAILABLE 3
#define PF_PPC_MOVEMEM_64BIT_OK 4
#define PF_ALPHA_BYTE_INSTRUCTIONS 5
#define PF_XMMI_INSTRUCTIONS_AVAILABLE 6
#define PF_3DNOW_INSTRUCTIONS_AVAILABLE 7
#define PF_RDTSC_INSTRUCTION_AVAILABLE 8
#define PF_PAE_ENABLED 9
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10
/* also in ddk/ntifs.h */
#define FILE_ACTION_ADDED                   0x00000001
#define FILE_ACTION_REMOVED                 0x00000002
#define FILE_ACTION_MODIFIED                0x00000003
#define FILE_ACTION_RENAMED_OLD_NAME        0x00000004
#define FILE_ACTION_RENAMED_NEW_NAME        0x00000005
#define FILE_ACTION_ADDED_STREAM            0x00000006
#define FILE_ACTION_REMOVED_STREAM          0x00000007
#define FILE_ACTION_MODIFIED_STREAM         0x00000008
#define FILE_ACTION_REMOVED_BY_DELETE       0x00000009
#define FILE_ACTION_ID_NOT_TUNNELLED        0x0000000A
#define FILE_ACTION_TUNNELLED_ID_COLLISION  0x0000000B
/* end ntifs.h */
#define HEAP_NO_SERIALIZE 1
#define HEAP_GROWABLE 2
#define HEAP_GENERATE_EXCEPTIONS 4
#define HEAP_ZERO_MEMORY 8
#define HEAP_REALLOC_IN_PLACE_ONLY 16
#define HEAP_TAIL_CHECKING_ENABLED 32
#define HEAP_FREE_CHECKING_ENABLED 64
#define HEAP_DISABLE_COALESCE_ON_FREE 128
#define HEAP_CREATE_ALIGN_16 0x0000
#define HEAP_CREATE_ENABLE_TRACING 0x20000
#define HEAP_MAXIMUM_TAG 0xFFF
#define HEAP_PSEUDO_TAG_FLAG 0x8000
#define HEAP_TAG_SHIFT 16
#define HEAP_MAKE_TAG_FLAGS(b,o) ((DWORD)((b)+(o)<<16)))
#define KEY_QUERY_VALUE 1
#define KEY_SET_VALUE 2
#define KEY_CREATE_SUB_KEY 4
#define KEY_ENUMERATE_SUB_KEYS 8
#define KEY_NOTIFY 16
#define KEY_CREATE_LINK 32
#define KEY_WRITE 0x20006
#define KEY_EXECUTE 0x20019
#define KEY_READ 0x20019
#define KEY_ALL_ACCESS 0xf003f
#define REG_WHOLE_HIVE_VOLATILE	1
#define REG_REFRESH_HIVE	2
#define REG_NO_LAZY_FLUSH	4
#define REG_OPTION_RESERVED	0
#define REG_OPTION_NON_VOLATILE	0
#define REG_OPTION_VOLATILE	1
#define REG_OPTION_CREATE_LINK	2
#define REG_OPTION_BACKUP_RESTORE	4
#define REG_OPTION_OPEN_LINK	8
#define REG_LEGAL_OPTION	15
#define OWNER_SECURITY_INFORMATION 1
#define GROUP_SECURITY_INFORMATION 2
#define DACL_SECURITY_INFORMATION 4
#define SACL_SECURITY_INFORMATION 8
#define MAXIMUM_PROCESSORS 32
#define PAGE_NOACCESS	0x0001
#define PAGE_READONLY	0x0002
#define PAGE_READWRITE	0x0004
#define PAGE_WRITECOPY	0x0008
#define PAGE_EXECUTE	0x0010
#define PAGE_EXECUTE_READ	0x0020
#define PAGE_EXECUTE_READWRITE	0x0040
#define PAGE_EXECUTE_WRITECOPY	0x0080
#define PAGE_GUARD		0x0100
#define PAGE_NOCACHE		0x0200
#define MEM_COMMIT           0x1000
#define MEM_RESERVE          0x2000
#define MEM_DECOMMIT         0x4000
#define MEM_RELEASE          0x8000
#define MEM_FREE            0x10000
#define MEM_PRIVATE         0x20000
#define MEM_MAPPED          0x40000
#define MEM_RESET           0x80000
#define MEM_TOP_DOWN       0x100000
#define MEM_WRITE_WATCH	   0x200000 /* 98/Me */
#define MEM_PHYSICAL	   0x400000
#define MEM_4MB_PAGES    0x80000000
/* also in ddk/ntifs.h */
#define MEM_IMAGE        SEC_IMAGE
#define SEC_BASED	0x00200000
#define SEC_NO_CHANGE	0x00400000
#define SEC_FILE	0x00800000
#define SEC_IMAGE	0x01000000
#define SEC_VLM		0x02000000
#define SEC_RESERVE	0x04000000
#define SEC_COMMIT	0x08000000
#define SEC_NOCACHE	0x10000000
/* end ntifs.h */
#define SECTION_EXTEND_SIZE 16
#define SECTION_MAP_READ 4
#define SECTION_MAP_WRITE 2
#define SECTION_QUERY 1
#define SECTION_MAP_EXECUTE 8
#define SECTION_ALL_ACCESS 0xf001f
#define MESSAGE_RESOURCE_UNICODE 1
#define RTL_CRITSECT_TYPE 0
#define RTL_RESOURCE_TYPE 1
/* Also in winddk.h */
#define FIELD_OFFSET(t,f) ((LONG)&(((t*)0)->f))
#ifndef CONTAINING_RECORD
#define CONTAINING_RECORD(address, type, field) \
  ((type*)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
#endif
/* end winddk.h */
#define IMAGE_SIZEOF_FILE_HEADER	20
#define IMAGE_FILE_RELOCS_STRIPPED	1
#define IMAGE_FILE_EXECUTABLE_IMAGE	2
#define IMAGE_FILE_LINE_NUMS_STRIPPED	4
#define IMAGE_FILE_LOCAL_SYMS_STRIPPED	8
#define IMAGE_FILE_AGGRESIVE_WS_TRIM 	16
#define IMAGE_FILE_LARGE_ADDRESS_AWARE	32
#define IMAGE_FILE_BYTES_REVERSED_LO	128
#define IMAGE_FILE_32BIT_MACHINE	256
#define IMAGE_FILE_DEBUG_STRIPPED	512
#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP	1024
#define IMAGE_FILE_NET_RUN_FROM_SWAP	2048
#define IMAGE_FILE_SYSTEM	4096
#define IMAGE_FILE_DLL	8192
#define IMAGE_FILE_UP_SYSTEM_ONLY	16384
#define IMAGE_FILE_BYTES_REVERSED_HI	32768

#define IMAGE_FILE_MACHINE_UNKNOWN	0x0000
#define IMAGE_FILE_MACHINE_AM33		0x01d3 /* Matsushita AM33 */
#define IMAGE_FILE_MACHINE_AMD64	0x8664 /* x64 */
#define IMAGE_FILE_MACHINE_ARM		0x01c0 /* ARM little endian */
#define IMAGE_FILE_MACHINE_EBC		0x0ebc /* EFI byte code */
#define IMAGE_FILE_MACHINE_I386		0x014c /* Intel 386 or later processors 
						  and compatible processors */
#define IMAGE_FILE_MACHINE_IA64		0x0200 /* Intel Itanium processor family */
#define IMAGE_FILE_MACHINE_M32R		0x9041 /* Mitsubishi M32R little endian */
#define IMAGE_FILE_MACHINE_MIPS16	0x0266 /* MIPS16 */
#define IMAGE_FILE_MACHINE_MIPSFPU	0x0366 /* MIPS with FPU */
#define IMAGE_FILE_MACHINE_MIPSFPU16	0x0466 /* MIPS16 with FPU */
#define IMAGE_FILE_MACHINE_POWERPC	0x01f0 /* Power PC little endian */
#define IMAGE_FILE_MACHINE_POWERPCFP	0x01f1 /* Power PC with floating point support */
#define IMAGE_FILE_MACHINE_R4000	0x0166 /* MIPS little endian */
#define IMAGE_FILE_MACHINE_SH3		0x01a2 /* Hitachi SH3 */
#define IMAGE_FILE_MACHINE_SH3DSP	0x01a3 /* Hitachi SH3 DSP */
#define IMAGE_FILE_MACHINE_SH4		0x01a6 /* Hitachi SH4 */
#define IMAGE_FILE_MACHINE_SH5		0x01a8 /* Hitachi SH5 */
#define IMAGE_FILE_MACHINE_THUMB	0x01c2 /* Thumb */
#define IMAGE_FILE_MACHINE_WCEMIPSV2	0x0169 /* MIPS little-endian WCE v2 */

#define IMAGE_DOS_SIGNATURE 0x5A4D
#define IMAGE_OS2_SIGNATURE 0x454E
#define IMAGE_OS2_SIGNATURE_LE 0x454C
#define IMAGE_VXD_SIGNATURE 0x454C
#define IMAGE_NT_SIGNATURE 0x00004550

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?