| 1 | /*
 | 
|---|
| 2 |  * Win32 definitions for Windows NT
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  * Copyright 1996 Alexandre Julliard
 | 
|---|
| 5 |  */
 | 
|---|
| 6 | 
 | 
|---|
| 7 | #ifndef __WINE_WINNT_H
 | 
|---|
| 8 | #define __WINE_WINNT_H
 | 
|---|
| 9 | 
 | 
|---|
| 10 | #include "windef.h"
 | 
|---|
| 11 | 
 | 
|---|
| 12 | /* Defines */
 | 
|---|
| 13 | 
 | 
|---|
| 14 | /* Argument 1 passed to the DllEntryProc. */
 | 
|---|
| 15 | #define DLL_PROCESS_DETACH      0       /* detach process (unload library) */
 | 
|---|
| 16 | #define DLL_PROCESS_ATTACH      1       /* attach process (load library) */
 | 
|---|
| 17 | #define DLL_THREAD_ATTACH       2       /* attach new thread */
 | 
|---|
| 18 | #define DLL_THREAD_DETACH       3       /* detach thread */
 | 
|---|
| 19 | 
 | 
|---|
| 20 | 
 | 
|---|
| 21 | /* u.x.wProcessorArchitecture (NT) */
 | 
|---|
| 22 | #define PROCESSOR_ARCHITECTURE_INTEL    0
 | 
|---|
| 23 | #define PROCESSOR_ARCHITECTURE_MIPS     1
 | 
|---|
| 24 | #define PROCESSOR_ARCHITECTURE_ALPHA    2
 | 
|---|
| 25 | #define PROCESSOR_ARCHITECTURE_PPC      3
 | 
|---|
| 26 | #define PROCESSOR_ARCHITECTURE_SHX      4
 | 
|---|
| 27 | #define PROCESSOR_ARCHITECTURE_ARM      5
 | 
|---|
| 28 | #define PROCESSOR_ARCHITECTURE_UNKNOWN  0xFFFF
 | 
|---|
| 29 | 
 | 
|---|
| 30 | /* dwProcessorType */
 | 
|---|
| 31 | #define PROCESSOR_INTEL_386      386
 | 
|---|
| 32 | #define PROCESSOR_INTEL_486      486
 | 
|---|
| 33 | #define PROCESSOR_INTEL_PENTIUM  586
 | 
|---|
| 34 | #define PROCESSOR_INTEL_860      860
 | 
|---|
| 35 | #define PROCESSOR_MIPS_R2000     2000
 | 
|---|
| 36 | #define PROCESSOR_MIPS_R3000     3000
 | 
|---|
| 37 | #define PROCESSOR_MIPS_R4000     4000
 | 
|---|
| 38 | #define PROCESSOR_ALPHA_21064    21064
 | 
|---|
| 39 | #define PROCESSOR_PPC_601        601
 | 
|---|
| 40 | #define PROCESSOR_PPC_603        603
 | 
|---|
| 41 | #define PROCESSOR_PPC_604        604
 | 
|---|
| 42 | #define PROCESSOR_PPC_620        620
 | 
|---|
| 43 | #define PROCESSOR_HITACHI_SH3    10003
 | 
|---|
| 44 | #define PROCESSOR_HITACHI_SH3E   10004
 | 
|---|
| 45 | #define PROCESSOR_HITACHI_SH4    10005
 | 
|---|
| 46 | #define PROCESSOR_MOTOROLA_821   821
 | 
|---|
| 47 | #define PROCESSOR_SHx_SH3        103
 | 
|---|
| 48 | #define PROCESSOR_SHx_SH4        104
 | 
|---|
| 49 | #define PROCESSOR_STRONGARM      2577
 | 
|---|
| 50 | #define PROCESSOR_ARM720         1824    /* 0x720 */
 | 
|---|
| 51 | #define PROCESSOR_ARM820         2080    /* 0x820 */
 | 
|---|
| 52 | #define PROCESSOR_ARM920         2336    /* 0x920 */
 | 
|---|
| 53 | #define PROCESSOR_ARM_7TDMI      70001
 | 
|---|
| 54 | 
 | 
|---|
| 55 | #define ANYSIZE_ARRAY 1
 | 
|---|
| 56 | 
 | 
|---|
| 57 | #define MINCHAR       0x80
 | 
|---|
| 58 | #define MAXCHAR       0x7f
 | 
|---|
| 59 | #define MINSHORT      0x8000
 | 
|---|
| 60 | #define MAXSHORT      0x7fff
 | 
|---|
| 61 | #define MINLONG       0x80000000
 | 
|---|
| 62 | #define MAXLONG       0x7fffffff
 | 
|---|
| 63 | #define MAXBYTE       0xff
 | 
|---|
| 64 | #define MAXWORD       0xffff
 | 
|---|
| 65 | #define MAXDWORD      0xffffffff
 | 
|---|
| 66 | 
 | 
|---|
| 67 | #define FIELD_OFFSET(type, field) \
 | 
|---|
| 68 |   ((LONG)(INT)&(((type *)0)->field))
 | 
|---|
| 69 | 
 | 
|---|
| 70 | #define CONTAINING_RECORD(address, type, field) \
 | 
|---|
| 71 |   ((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
 | 
|---|
| 72 | 
 | 
|---|
| 73 | /* C99 restrict support */
 | 
|---|
| 74 | 
 | 
|---|
| 75 | #if defined(ENABLE_RESTRICTED) && !defined(MIDL_PASS) && !defined(RC_INVOKED)
 | 
|---|
| 76 | # if defined(_MSC_VER) && defined(_M_MRX000)
 | 
|---|
| 77 | #  define RESTRICTED_POINTER __restrict
 | 
|---|
| 78 | # elif defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)))
 | 
|---|
| 79 | #  define RESTRICTED_POINTER __restrict
 | 
|---|
| 80 | # else
 | 
|---|
| 81 | #  define RESTRICTED_POINTER
 | 
|---|
| 82 | # endif
 | 
|---|
| 83 | #else
 | 
|---|
| 84 | # define RESTRICTED_POINTER
 | 
|---|
| 85 | #endif
 | 
|---|
| 86 | 
 | 
|---|
| 87 | /* Types */
 | 
|---|
| 88 | 
 | 
|---|
| 89 | /* TCHAR data types definitions for Winelib. */
 | 
|---|
| 90 | /* These types are _not_ defined for the emulator, because they */
 | 
|---|
| 91 | /* depend on the UNICODE macro that only exists in user's code. */
 | 
|---|
| 92 | 
 | 
|---|
| 93 | #if !defined(__WINE__) && !defined(__WINE_WINDEF_H)
 | 
|---|
| 94 | # ifdef UNICODE
 | 
|---|
| 95 | typedef LPWSTR LPTSTR;
 | 
|---|
| 96 | typedef LPCWSTR LPCTSTR;
 | 
|---|
| 97 | #define __TEXT(string) L##string /*probably wrong */
 | 
|---|
| 98 | # else  /* UNICODE */
 | 
|---|
| 99 | typedef LPSTR LPTSTR;
 | 
|---|
| 100 | typedef LPCSTR LPCTSTR;
 | 
|---|
| 101 | #define __TEXT(string) string
 | 
|---|
| 102 | # endif /* UNICODE */
 | 
|---|
| 103 | #endif   /* __WINE__ */
 | 
|---|
| 104 | #define TEXT(quote) __TEXT(quote)
 | 
|---|
| 105 | 
 | 
|---|
| 106 | typedef char            CCHAR;
 | 
|---|
| 107 | typedef BYTE            BOOLEAN;
 | 
|---|
| 108 | typedef BOOLEAN         *PBOOLEAN;
 | 
|---|
| 109 | typedef DWORD           EXECUTION_STATE;
 | 
|---|
| 110 | 
 | 
|---|
| 111 | typedef CHAR           *PCH,        *LPCH;
 | 
|---|
| 112 | typedef const CHAR     *PCCH,       *LPCCH;
 | 
|---|
| 113 | 
 | 
|---|
| 114 | /* Unicode string types */
 | 
|---|
| 115 | typedef WCHAR          *PWCH,       *LPWCH,     *PWCHAR;
 | 
|---|
| 116 | typedef const WCHAR    *PCWCH,      *LPCWCH;
 | 
|---|
| 117 | 
 | 
|---|
| 118 | #if !defined(_TCHAR_DEFINED)
 | 
|---|
| 119 | # define _TCHAR_DEFINED
 | 
|---|
| 120 | # ifdef UNICODE
 | 
|---|
| 121 | typedef WCHAR           TCHAR,      *PTCHAR;
 | 
|---|
| 122 | typedef LPWSTR          PTSTR,       LPTSTR;
 | 
|---|
| 123 | typedef LPCWSTR         PCTSTR,      LPCTSTR;
 | 
|---|
| 124 | #  define __TEXT(string) L##string
 | 
|---|
| 125 | # else  /* UNICODE */
 | 
|---|
| 126 | #ifndef __WINE_WINDEF_H
 | 
|---|
| 127 | typedef CHAR            TCHAR,      *PTCHAR;
 | 
|---|
| 128 | typedef LPSTR           PTSTR;
 | 
|---|
| 129 | typedef LPCSTR          PCTSTR;
 | 
|---|
| 130 | #endif
 | 
|---|
| 131 | #  define __TEXT(string) string
 | 
|---|
| 132 | # endif /* UNICODE */
 | 
|---|
| 133 | #endif
 | 
|---|
| 134 | #define TEXT(quote) __TEXT(quote)
 | 
|---|
| 135 | 
 | 
|---|
| 136 | /* Types */
 | 
|---|
| 137 | 
 | 
|---|
| 138 | typedef struct _LIST_ENTRY {
 | 
|---|
| 139 |   struct _LIST_ENTRY *Flink;
 | 
|---|
| 140 |   struct _LIST_ENTRY *Blink;
 | 
|---|
| 141 | } LIST_ENTRY, *PLIST_ENTRY, * RESTRICTED_POINTER PRLIST_ENTRY;
 | 
|---|
| 142 | 
 | 
|---|
| 143 | typedef struct _SINGLE_LIST_ENTRY {
 | 
|---|
| 144 |   struct _SINGLE_LIST_ENTRY *Next;
 | 
|---|
| 145 | } SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
 | 
|---|
| 146 | 
 | 
|---|
| 147 | 
 | 
|---|
| 148 | 
 | 
|---|
| 149 | /* Heap flags */
 | 
|---|
| 150 | 
 | 
|---|
| 151 | #define HEAP_NO_SERIALIZE               0x00000001
 | 
|---|
| 152 | #define HEAP_GROWABLE                   0x00000002
 | 
|---|
| 153 | #define HEAP_GENERATE_EXCEPTIONS        0x00000004
 | 
|---|
| 154 | #define HEAP_ZERO_MEMORY                0x00000008
 | 
|---|
| 155 | #define HEAP_REALLOC_IN_PLACE_ONLY      0x00000010
 | 
|---|
| 156 | #define HEAP_TAIL_CHECKING_ENABLED      0x00000020
 | 
|---|
| 157 | #define HEAP_FREE_CHECKING_ENABLED      0x00000040
 | 
|---|
| 158 | #define HEAP_DISABLE_COALESCE_ON_FREE   0x00000080
 | 
|---|
| 159 | #define HEAP_CREATE_ALIGN_16            0x00010000
 | 
|---|
| 160 | #define HEAP_CREATE_ENABLE_TRACING      0x00020000
 | 
|---|
| 161 | 
 | 
|---|
| 162 | /* This flag allows it to create heaps shared by all processes under win95,
 | 
|---|
| 163 |    FIXME: correct name */
 | 
|---|
| 164 | #define HEAP_SHARED                     0x04000000
 | 
|---|
| 165 | 
 | 
|---|
| 166 | /* Processor feature flags.  */
 | 
|---|
| 167 | #define PF_FLOATING_POINT_PRECISION_ERRATA      0
 | 
|---|
| 168 | #define PF_FLOATING_POINT_EMULATED              1
 | 
|---|
| 169 | #define PF_COMPARE_EXCHANGE_DOUBLE              2
 | 
|---|
| 170 | #define PF_MMX_INSTRUCTIONS_AVAILABLE           3
 | 
|---|
| 171 | #define PF_PPC_MOVEMEM_64BIT_OK                 4
 | 
|---|
| 172 | #define PF_ALPHA_BYTE_INSTRUCTIONS              5
 | 
|---|
| 173 | #define PF_XMMI_INSTRUCTIONS_AVAILABLE          6
 | 
|---|
| 174 | #define PF_3DNOW_INSTRUCTIONS_AVAILABLE         7
 | 
|---|
| 175 | #define PF_RDTSC_INSTRUCTION_AVAILABLE          8
 | 
|---|
| 176 | #define PF_PAE_ENABLED                          9
 | 
|---|
| 177 | #define PF_XMMI64_INSTRUCTIONS_AVAILABLE        10
 | 
|---|
| 178 | #define PF_SSE_DAZ_MODE_AVAILABLE               11
 | 
|---|
| 179 | #define PF_NX_ENABLED                           12
 | 
|---|
| 180 | #define PF_SSE3_INSTRUCTIONS_AVAILABLE          13
 | 
|---|
| 181 | #define PF_COMPARE_EXCHANGE128                  14
 | 
|---|
| 182 | #define PF_COMPARE64_EXCHANGE128                15
 | 
|---|
| 183 | #define PF_CHANNELS_ENABLED                     16
 | 
|---|
| 184 | 
 | 
|---|
| 185 | 
 | 
|---|
| 186 | /* The Win32 register context */
 | 
|---|
| 187 | 
 | 
|---|
| 188 | /* CONTEXT is the CPU-dependent context; it should be used        */
 | 
|---|
| 189 | /* wherever a platform-specific context is needed (e.g. exception */
 | 
|---|
| 190 | /* handling, Win32 register functions). */
 | 
|---|
| 191 | 
 | 
|---|
| 192 | /* CONTEXT86 is the i386-specific context; it should be used     */
 | 
|---|
| 193 | /* wherever only a 386 context makes sense (e.g. DOS interrupts, */
 | 
|---|
| 194 | /* Win16 register functions), so that this code can be compiled  */
 | 
|---|
| 195 | /* on all platforms. */
 | 
|---|
| 196 | 
 | 
|---|
| 197 | #define SIZE_OF_80387_REGISTERS      80
 | 
|---|
| 198 | 
 | 
|---|
| 199 | typedef struct _FLOATING_SAVE_AREA
 | 
|---|
| 200 | {
 | 
|---|
| 201 |     DWORD   ControlWord;
 | 
|---|
| 202 |     DWORD   StatusWord;
 | 
|---|
| 203 |     DWORD   TagWord;
 | 
|---|
| 204 |     DWORD   ErrorOffset;
 | 
|---|
| 205 |     DWORD   ErrorSelector;
 | 
|---|
| 206 |     DWORD   DataOffset;
 | 
|---|
| 207 |     DWORD   DataSelector;
 | 
|---|
| 208 |     BYTE    RegisterArea[SIZE_OF_80387_REGISTERS];
 | 
|---|
| 209 |     DWORD   Cr0NpxState;
 | 
|---|
| 210 | } FLOATING_SAVE_AREA, *PFLOATING_SAVE_AREA;
 | 
|---|
| 211 | 
 | 
|---|
| 212 | typedef struct _CONTEXT86
 | 
|---|
| 213 | {
 | 
|---|
| 214 |     DWORD   ContextFlags;
 | 
|---|
| 215 | 
 | 
|---|
| 216 |     /* These are selected by CONTEXT_DEBUG_REGISTERS */
 | 
|---|
| 217 |     DWORD   Dr0;
 | 
|---|
| 218 |     DWORD   Dr1;
 | 
|---|
| 219 |     DWORD   Dr2;
 | 
|---|
| 220 |     DWORD   Dr3;
 | 
|---|
| 221 |     DWORD   Dr6;
 | 
|---|
| 222 |     DWORD   Dr7;
 | 
|---|
| 223 | 
 | 
|---|
| 224 |     /* These are selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 225 |     FLOATING_SAVE_AREA FloatSave;
 | 
|---|
| 226 | 
 | 
|---|
| 227 |     /* These are selected by CONTEXT_SEGMENTS */
 | 
|---|
| 228 |     DWORD   SegGs;
 | 
|---|
| 229 |     DWORD   SegFs;
 | 
|---|
| 230 |     DWORD   SegEs;
 | 
|---|
| 231 |     DWORD   SegDs;
 | 
|---|
| 232 | 
 | 
|---|
| 233 |     /* These are selected by CONTEXT_INTEGER */
 | 
|---|
| 234 |     DWORD   Edi;
 | 
|---|
| 235 |     DWORD   Esi;
 | 
|---|
| 236 |     DWORD   Ebx;
 | 
|---|
| 237 |     DWORD   Edx;
 | 
|---|
| 238 |     DWORD   Ecx;
 | 
|---|
| 239 |     DWORD   Eax;
 | 
|---|
| 240 | 
 | 
|---|
| 241 |     /* These are selected by CONTEXT_CONTROL */
 | 
|---|
| 242 |     DWORD   Ebp;
 | 
|---|
| 243 |     DWORD   Eip;
 | 
|---|
| 244 |     DWORD   SegCs;
 | 
|---|
| 245 |     DWORD   EFlags;
 | 
|---|
| 246 |     DWORD   Esp;
 | 
|---|
| 247 |     DWORD   SegSs;
 | 
|---|
| 248 | } CONTEXT86;
 | 
|---|
| 249 | 
 | 
|---|
| 250 | #define CONTEXT_X86       0x00010000
 | 
|---|
| 251 | #define CONTEXT_i386      CONTEXT_X86
 | 
|---|
| 252 | #define CONTEXT_i486      CONTEXT_X86
 | 
|---|
| 253 | 
 | 
|---|
| 254 | #define CONTEXT86_CONTROL   (CONTEXT_i386 | 0x0001) /* SS:SP, CS:IP, FLAGS, BP */
 | 
|---|
| 255 | #define CONTEXT86_INTEGER   (CONTEXT_i386 | 0x0002) /* AX, BX, CX, DX, SI, DI */
 | 
|---|
| 256 | #define CONTEXT86_SEGMENTS  (CONTEXT_i386 | 0x0004) /* DS, ES, FS, GS */
 | 
|---|
| 257 | #define CONTEXT86_FLOATING_POINT  (CONTEXT_i386 | 0x0008L) /* 387 state */
 | 
|---|
| 258 | #define CONTEXT86_DEBUG_REGISTERS (CONTEXT_i386 | 0x0010L) /* DB 0-3,6,7 */
 | 
|---|
| 259 | #define CONTEXT86_FULL (CONTEXT86_CONTROL | CONTEXT86_INTEGER | CONTEXT86_SEGMENTS)
 | 
|---|
| 260 | 
 | 
|---|
| 261 | /* i386 context definitions */
 | 
|---|
| 262 | #ifdef __i386__
 | 
|---|
| 263 | 
 | 
|---|
| 264 | #define CONTEXT_CONTROL         CONTEXT86_CONTROL
 | 
|---|
| 265 | #define CONTEXT_INTEGER         CONTEXT86_INTEGER
 | 
|---|
| 266 | #define CONTEXT_SEGMENTS        CONTEXT86_SEGMENTS
 | 
|---|
| 267 | #define CONTEXT_FLOATING_POINT  CONTEXT86_FLOATING_POINT
 | 
|---|
| 268 | #define CONTEXT_DEBUG_REGISTERS CONTEXT86_DEBUG_REGISTERS
 | 
|---|
| 269 | #define CONTEXT_FULL            CONTEXT86_FULL
 | 
|---|
| 270 | 
 | 
|---|
| 271 | typedef CONTEXT86 CONTEXT;
 | 
|---|
| 272 | 
 | 
|---|
| 273 | #endif  /* __i386__ */
 | 
|---|
| 274 | 
 | 
|---|
| 275 | /* Alpha context definitions */
 | 
|---|
| 276 | #ifdef _ALPHA_
 | 
|---|
| 277 | 
 | 
|---|
| 278 | #define CONTEXT_ALPHA   0x00020000
 | 
|---|
| 279 | 
 | 
|---|
| 280 | #define CONTEXT_CONTROL         (CONTEXT_ALPHA | 0x00000001L)
 | 
|---|
| 281 | #define CONTEXT_FLOATING_POINT  (CONTEXT_ALPHA | 0x00000002L)
 | 
|---|
| 282 | #define CONTEXT_INTEGER         (CONTEXT_ALPHA | 0x00000004L)
 | 
|---|
| 283 | #define CONTEXT_FULL  (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
 | 
|---|
| 284 | 
 | 
|---|
| 285 | typedef struct _CONTEXT
 | 
|---|
| 286 | {
 | 
|---|
| 287 |     /* selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 288 |     ULONGLONG FltF0;
 | 
|---|
| 289 |     ULONGLONG FltF1;
 | 
|---|
| 290 |     ULONGLONG FltF2;
 | 
|---|
| 291 |     ULONGLONG FltF3;
 | 
|---|
| 292 |     ULONGLONG FltF4;
 | 
|---|
| 293 |     ULONGLONG FltF5;
 | 
|---|
| 294 |     ULONGLONG FltF6;
 | 
|---|
| 295 |     ULONGLONG FltF7;
 | 
|---|
| 296 |     ULONGLONG FltF8;
 | 
|---|
| 297 |     ULONGLONG FltF9;
 | 
|---|
| 298 |     ULONGLONG FltF10;
 | 
|---|
| 299 |     ULONGLONG FltF11;
 | 
|---|
| 300 |     ULONGLONG FltF12;
 | 
|---|
| 301 |     ULONGLONG FltF13;
 | 
|---|
| 302 |     ULONGLONG FltF14;
 | 
|---|
| 303 |     ULONGLONG FltF15;
 | 
|---|
| 304 |     ULONGLONG FltF16;
 | 
|---|
| 305 |     ULONGLONG FltF17;
 | 
|---|
| 306 |     ULONGLONG FltF18;
 | 
|---|
| 307 |     ULONGLONG FltF19;
 | 
|---|
| 308 |     ULONGLONG FltF20;
 | 
|---|
| 309 |     ULONGLONG FltF21;
 | 
|---|
| 310 |     ULONGLONG FltF22;
 | 
|---|
| 311 |     ULONGLONG FltF23;
 | 
|---|
| 312 |     ULONGLONG FltF24;
 | 
|---|
| 313 |     ULONGLONG FltF25;
 | 
|---|
| 314 |     ULONGLONG FltF26;
 | 
|---|
| 315 |     ULONGLONG FltF27;
 | 
|---|
| 316 |     ULONGLONG FltF28;
 | 
|---|
| 317 |     ULONGLONG FltF29;
 | 
|---|
| 318 |     ULONGLONG FltF30;
 | 
|---|
| 319 |     ULONGLONG FltF31;
 | 
|---|
| 320 | 
 | 
|---|
| 321 |     /* selected by CONTEXT_INTEGER */
 | 
|---|
| 322 |     ULONGLONG IntV0;
 | 
|---|
| 323 |     ULONGLONG IntT0;
 | 
|---|
| 324 |     ULONGLONG IntT1;
 | 
|---|
| 325 |     ULONGLONG IntT2;
 | 
|---|
| 326 |     ULONGLONG IntT3;
 | 
|---|
| 327 |     ULONGLONG IntT4;
 | 
|---|
| 328 |     ULONGLONG IntT5;
 | 
|---|
| 329 |     ULONGLONG IntT6;
 | 
|---|
| 330 |     ULONGLONG IntT7;
 | 
|---|
| 331 |     ULONGLONG IntS0;
 | 
|---|
| 332 |     ULONGLONG IntS1;
 | 
|---|
| 333 |     ULONGLONG IntS2;
 | 
|---|
| 334 |     ULONGLONG IntS3;
 | 
|---|
| 335 |     ULONGLONG IntS4;
 | 
|---|
| 336 |     ULONGLONG IntS5;
 | 
|---|
| 337 |     ULONGLONG IntFp;
 | 
|---|
| 338 |     ULONGLONG IntA0;
 | 
|---|
| 339 |     ULONGLONG IntA1;
 | 
|---|
| 340 |     ULONGLONG IntA2;
 | 
|---|
| 341 |     ULONGLONG IntA3;
 | 
|---|
| 342 |     ULONGLONG IntA4;
 | 
|---|
| 343 |     ULONGLONG IntA5;
 | 
|---|
| 344 |     ULONGLONG IntT8;
 | 
|---|
| 345 |     ULONGLONG IntT9;
 | 
|---|
| 346 |     ULONGLONG IntT10;
 | 
|---|
| 347 |     ULONGLONG IntT11;
 | 
|---|
| 348 |     ULONGLONG IntRa;
 | 
|---|
| 349 |     ULONGLONG IntT12;
 | 
|---|
| 350 |     ULONGLONG IntAt;
 | 
|---|
| 351 |     ULONGLONG IntGp;
 | 
|---|
| 352 |     ULONGLONG IntSp;
 | 
|---|
| 353 |     ULONGLONG IntZero;
 | 
|---|
| 354 | 
 | 
|---|
| 355 |     /* selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 356 |     ULONGLONG Fpcr;
 | 
|---|
| 357 |     ULONGLONG SoftFpcr;
 | 
|---|
| 358 | 
 | 
|---|
| 359 |     /* selected by CONTEXT_CONTROL */
 | 
|---|
| 360 |     ULONGLONG Fir;
 | 
|---|
| 361 |     DWORD Psr;
 | 
|---|
| 362 |     DWORD ContextFlags;
 | 
|---|
| 363 |     DWORD Fill[4];
 | 
|---|
| 364 | } CONTEXT;
 | 
|---|
| 365 | 
 | 
|---|
| 366 | #define _QUAD_PSR_OFFSET   HighSoftFpcr
 | 
|---|
| 367 | #define _QUAD_FLAGS_OFFSET HighFir
 | 
|---|
| 368 | 
 | 
|---|
| 369 | #endif  /* _ALPHA_ */
 | 
|---|
| 370 | 
 | 
|---|
| 371 | /* Mips context definitions */
 | 
|---|
| 372 | #ifdef _MIPS_
 | 
|---|
| 373 | 
 | 
|---|
| 374 | #define CONTEXT_R4000   0x00010000
 | 
|---|
| 375 | 
 | 
|---|
| 376 | #define CONTEXT_CONTROL         (CONTEXT_R4000 | 0x00000001)
 | 
|---|
| 377 | #define CONTEXT_FLOATING_POINT  (CONTEXT_R4000 | 0x00000002)
 | 
|---|
| 378 | #define CONTEXT_INTEGER         (CONTEXT_R4000 | 0x00000004)
 | 
|---|
| 379 | 
 | 
|---|
| 380 | #define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
 | 
|---|
| 381 | 
 | 
|---|
| 382 | typedef struct _CONTEXT
 | 
|---|
| 383 | {
 | 
|---|
| 384 |     DWORD Argument[4];
 | 
|---|
| 385 |     /* These are selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 386 |     DWORD FltF0;
 | 
|---|
| 387 |     DWORD FltF1;
 | 
|---|
| 388 |     DWORD FltF2;
 | 
|---|
| 389 |     DWORD FltF3;
 | 
|---|
| 390 |     DWORD FltF4;
 | 
|---|
| 391 |     DWORD FltF5;
 | 
|---|
| 392 |     DWORD FltF6;
 | 
|---|
| 393 |     DWORD FltF7;
 | 
|---|
| 394 |     DWORD FltF8;
 | 
|---|
| 395 |     DWORD FltF9;
 | 
|---|
| 396 |     DWORD FltF10;
 | 
|---|
| 397 |     DWORD FltF11;
 | 
|---|
| 398 |     DWORD FltF12;
 | 
|---|
| 399 |     DWORD FltF13;
 | 
|---|
| 400 |     DWORD FltF14;
 | 
|---|
| 401 |     DWORD FltF15;
 | 
|---|
| 402 |     DWORD FltF16;
 | 
|---|
| 403 |     DWORD FltF17;
 | 
|---|
| 404 |     DWORD FltF18;
 | 
|---|
| 405 |     DWORD FltF19;
 | 
|---|
| 406 |     DWORD FltF20;
 | 
|---|
| 407 |     DWORD FltF21;
 | 
|---|
| 408 |     DWORD FltF22;
 | 
|---|
| 409 |     DWORD FltF23;
 | 
|---|
| 410 |     DWORD FltF24;
 | 
|---|
| 411 |     DWORD FltF25;
 | 
|---|
| 412 |     DWORD FltF26;
 | 
|---|
| 413 |     DWORD FltF27;
 | 
|---|
| 414 |     DWORD FltF28;
 | 
|---|
| 415 |     DWORD FltF29;
 | 
|---|
| 416 |     DWORD FltF30;
 | 
|---|
| 417 |     DWORD FltF31;
 | 
|---|
| 418 | 
 | 
|---|
| 419 |     /* These are selected by CONTEXT_INTEGER */
 | 
|---|
| 420 |     DWORD IntZero;
 | 
|---|
| 421 |     DWORD IntAt;
 | 
|---|
| 422 |     DWORD IntV0;
 | 
|---|
| 423 |     DWORD IntV1;
 | 
|---|
| 424 |     DWORD IntA0;
 | 
|---|
| 425 |     DWORD IntA1;
 | 
|---|
| 426 |     DWORD IntA2;
 | 
|---|
| 427 |     DWORD IntA3;
 | 
|---|
| 428 |     DWORD IntT0;
 | 
|---|
| 429 |     DWORD IntT1;
 | 
|---|
| 430 |     DWORD IntT2;
 | 
|---|
| 431 |     DWORD IntT3;
 | 
|---|
| 432 |     DWORD IntT4;
 | 
|---|
| 433 |     DWORD IntT5;
 | 
|---|
| 434 |     DWORD IntT6;
 | 
|---|
| 435 |     DWORD IntT7;
 | 
|---|
| 436 |     DWORD IntS0;
 | 
|---|
| 437 |     DWORD IntS1;
 | 
|---|
| 438 |     DWORD IntS2;
 | 
|---|
| 439 |     DWORD IntS3;
 | 
|---|
| 440 |     DWORD IntS4;
 | 
|---|
| 441 |     DWORD IntS5;
 | 
|---|
| 442 |     DWORD IntS6;
 | 
|---|
| 443 |     DWORD IntS7;
 | 
|---|
| 444 |     DWORD IntT8;
 | 
|---|
| 445 |     DWORD IntT9;
 | 
|---|
| 446 |     DWORD IntK0;
 | 
|---|
| 447 |     DWORD IntK1;
 | 
|---|
| 448 |     DWORD IntGp;
 | 
|---|
| 449 |     DWORD IntSp;
 | 
|---|
| 450 |     DWORD IntS8;
 | 
|---|
| 451 |     DWORD IntRa;
 | 
|---|
| 452 |     DWORD IntLo;
 | 
|---|
| 453 |     DWORD IntHi;
 | 
|---|
| 454 | 
 | 
|---|
| 455 |     /* These are selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 456 |     DWORD Fsr;
 | 
|---|
| 457 | 
 | 
|---|
| 458 |     /* These are selected by CONTEXT_CONTROL */
 | 
|---|
| 459 |     DWORD Fir;
 | 
|---|
| 460 |     DWORD Psr;
 | 
|---|
| 461 | 
 | 
|---|
| 462 |     DWORD ContextFlags;
 | 
|---|
| 463 |     DWORD Fill[2];
 | 
|---|
| 464 | } CONTEXT;
 | 
|---|
| 465 | 
 | 
|---|
| 466 | #endif  /* _MIPS_ */
 | 
|---|
| 467 | 
 | 
|---|
| 468 | /* PowerPC context definitions */
 | 
|---|
| 469 | #ifdef __PPC__
 | 
|---|
| 470 | 
 | 
|---|
| 471 | #define CONTEXT_CONTROL         0x0001
 | 
|---|
| 472 | #define CONTEXT_FLOATING_POINT  0x0002
 | 
|---|
| 473 | #define CONTEXT_INTEGER         0x0004
 | 
|---|
| 474 | #define CONTEXT_DEBUG_REGISTERS 0x0008
 | 
|---|
| 475 | #define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
 | 
|---|
| 476 | 
 | 
|---|
| 477 | typedef struct
 | 
|---|
| 478 | {
 | 
|---|
| 479 |     /* These are selected by CONTEXT_FLOATING_POINT */
 | 
|---|
| 480 |     double Fpr0;
 | 
|---|
| 481 |     double Fpr1;
 | 
|---|
| 482 |     double Fpr2;
 | 
|---|
| 483 |     double Fpr3;
 | 
|---|
| 484 |     double Fpr4;
 | 
|---|
| 485 |     double Fpr5;
 | 
|---|
| 486 |     double Fpr6;
 | 
|---|
| 487 |     double Fpr7;
 | 
|---|
| 488 |     double Fpr8;
 | 
|---|
| 489 |     double Fpr9;
 | 
|---|
| 490 |     double Fpr10;
 | 
|---|
| 491 |     double Fpr11;
 | 
|---|
| 492 |     double Fpr12;
 | 
|---|
| 493 |     double Fpr13;
 | 
|---|
| 494 |     double Fpr14;
 | 
|---|
| 495 |     double Fpr15;
 | 
|---|
| 496 |     double Fpr16;
 | 
|---|
| 497 |     double Fpr17;
 | 
|---|
| 498 |     double Fpr18;
 | 
|---|
| 499 |     double Fpr19;
 | 
|---|
| 500 |     double Fpr20;
 | 
|---|
| 501 |     double Fpr21;
 | 
|---|
| 502 |     double Fpr22;
 | 
|---|
| 503 |     double Fpr23;
 | 
|---|
| 504 |     double Fpr24;
 | 
|---|
| 505 |     double Fpr25;
 | 
|---|
| 506 |     double Fpr26;
 | 
|---|
| 507 |     double Fpr27;
 | 
|---|
| 508 |     double Fpr28;
 | 
|---|
| 509 |     double Fpr29;
 | 
|---|
| 510 |     double Fpr30;
 | 
|---|
| 511 |     double Fpr31;
 | 
|---|
| 512 |     double Fpscr;
 | 
|---|
| 513 | 
 | 
|---|
| 514 |     /* These are selected by CONTEXT_INTEGER */
 | 
|---|
| 515 |     DWORD Gpr0;
 | 
|---|
| 516 |     DWORD Gpr1;
 | 
|---|
| 517 |     DWORD Gpr2;
 | 
|---|
| 518 |     DWORD Gpr3;
 | 
|---|
| 519 |     DWORD Gpr4;
 | 
|---|
| 520 |     DWORD Gpr5;
 | 
|---|
| 521 |     DWORD Gpr6;
 | 
|---|
| 522 |     DWORD Gpr7;
 | 
|---|
| 523 |     DWORD Gpr8;
 | 
|---|
| 524 |     DWORD Gpr9;
 | 
|---|
| 525 |     DWORD Gpr10;
 | 
|---|
| 526 |     DWORD Gpr11;
 | 
|---|
| 527 |     DWORD Gpr12;
 | 
|---|
| 528 |     DWORD Gpr13;
 | 
|---|
| 529 |     DWORD Gpr14;
 | 
|---|
| 530 |     DWORD Gpr15;
 | 
|---|
| 531 |     DWORD Gpr16;
 | 
|---|
| 532 |     DWORD Gpr17;
 | 
|---|
| 533 |     DWORD Gpr18;
 | 
|---|
| 534 |     DWORD Gpr19;
 | 
|---|
| 535 |     DWORD Gpr20;
 | 
|---|
| 536 |     DWORD Gpr21;
 | 
|---|
| 537 |     DWORD Gpr22;
 | 
|---|
| 538 |     DWORD Gpr23;
 | 
|---|
| 539 |     DWORD Gpr24;
 | 
|---|
| 540 |     DWORD Gpr25;
 | 
|---|
| 541 |     DWORD Gpr26;
 | 
|---|
| 542 |     DWORD Gpr27;
 | 
|---|
| 543 |     DWORD Gpr28;
 | 
|---|
| 544 |     DWORD Gpr29;
 | 
|---|
| 545 |     DWORD Gpr30;
 | 
|---|
| 546 |     DWORD Gpr31;
 | 
|---|
| 547 | 
 | 
|---|
| 548 |     DWORD Cr;
 | 
|---|
| 549 |     DWORD Xer;
 | 
|---|
| 550 | 
 | 
|---|
| 551 |     /* These are selected by CONTEXT_CONTROL */
 | 
|---|
| 552 |     DWORD Msr;
 | 
|---|
| 553 |     DWORD Iar;
 | 
|---|
| 554 |     DWORD Lr;
 | 
|---|
| 555 |     DWORD Ctr;
 | 
|---|
| 556 | 
 | 
|---|
| 557 |     DWORD ContextFlags;
 | 
|---|
| 558 |     DWORD Fill[3];
 | 
|---|
| 559 | 
 | 
|---|
| 560 |     /* These are selected by CONTEXT_DEBUG_REGISTERS */
 | 
|---|
| 561 |     DWORD Dr0;
 | 
|---|
| 562 |     DWORD Dr1;
 | 
|---|
| 563 |     DWORD Dr2;
 | 
|---|
| 564 |     DWORD Dr3;
 | 
|---|
| 565 |     DWORD Dr4;
 | 
|---|
| 566 |     DWORD Dr5;
 | 
|---|
| 567 |     DWORD Dr6;
 | 
|---|
| 568 |     DWORD Dr7;
 | 
|---|
| 569 | } CONTEXT;
 | 
|---|
| 570 | 
 | 
|---|
| 571 | typedef struct _STACK_FRAME_HEADER
 | 
|---|
| 572 | {
 | 
|---|
| 573 |     DWORD BackChain;
 | 
|---|
| 574 |     DWORD GlueSaved1;
 | 
|---|
| 575 |     DWORD GlueSaved2;
 | 
|---|
| 576 |     DWORD Reserved1;
 | 
|---|
| 577 |     DWORD Spare1;
 | 
|---|
| 578 |     DWORD Spare2;
 | 
|---|
| 579 | 
 | 
|---|
| 580 |     DWORD Parameter0;
 | 
|---|
| 581 |     DWORD Parameter1;
 | 
|---|
| 582 |     DWORD Parameter2;
 | 
|---|
| 583 |     DWORD Parameter3;
 | 
|---|
| 584 |     DWORD Parameter4;
 | 
|---|
| 585 |     DWORD Parameter5;
 | 
|---|
| 586 |     DWORD Parameter6;
 | 
|---|
| 587 |     DWORD Parameter7;
 | 
|---|
| 588 | } STACK_FRAME_HEADER,*PSTACK_FRAME_HEADER;
 | 
|---|
| 589 | 
 | 
|---|
| 590 | #endif  /* __PPC__ */
 | 
|---|
| 591 | 
 | 
|---|
| 592 | #ifdef __sparc__
 | 
|---|
| 593 | 
 | 
|---|
| 594 | /*
 | 
|---|
| 595 |  * FIXME:
 | 
|---|
| 596 |  *
 | 
|---|
| 597 |  * There is no official CONTEXT structure defined for the SPARC
 | 
|---|
| 598 |  * architecture, so I just made one up.
 | 
|---|
| 599 |  *
 | 
|---|
| 600 |  * This structure is valid only for 32-bit SPARC architectures,
 | 
|---|
| 601 |  * not for 64-bit SPARC.
 | 
|---|
| 602 |  *
 | 
|---|
| 603 |  * Note that this structure contains only the 'top-level' registers;
 | 
|---|
| 604 |  * the rest of the register window chain is not visible.
 | 
|---|
| 605 |  *
 | 
|---|
| 606 |  * The layout follows the Solaris 'prgregset_t' structure.
 | 
|---|
| 607 |  *
 | 
|---|
| 608 |  */
 | 
|---|
| 609 | 
 | 
|---|
| 610 | #define CONTEXT_SPARC            0x10000000
 | 
|---|
| 611 | 
 | 
|---|
| 612 | #define CONTEXT_CONTROL         (CONTEXT_SPARC | 0x00000001)
 | 
|---|
| 613 | #define CONTEXT_FLOATING_POINT  (CONTEXT_SPARC | 0x00000002)
 | 
|---|
| 614 | #define CONTEXT_INTEGER         (CONTEXT_SPARC | 0x00000004)
 | 
|---|
| 615 | 
 | 
|---|
| 616 | #define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
 | 
|---|
| 617 | 
 | 
|---|
| 618 | typedef struct _CONTEXT
 | 
|---|
| 619 | {
 | 
|---|
| 620 |     DWORD ContextFlags;
 | 
|---|
| 621 | 
 | 
|---|
| 622 |     /* These are selected by CONTEXT_INTEGER */
 | 
|---|
| 623 |     DWORD g0;
 | 
|---|
| 624 |     DWORD g1;
 | 
|---|
| 625 |     DWORD g2;
 | 
|---|
| 626 |     DWORD g3;
 | 
|---|
| 627 |     DWORD g4;
 | 
|---|
| 628 |     DWORD g5;
 | 
|---|
| 629 |     DWORD g6;
 | 
|---|
| 630 |     DWORD g7;
 | 
|---|
| 631 |     DWORD o0;
 | 
|---|
| 632 |     DWORD o1;
 | 
|---|
| 633 |     DWORD o2;
 | 
|---|
| 634 |     DWORD o3;
 | 
|---|
| 635 |     DWORD o4;
 | 
|---|
| 636 |     DWORD o5;
 | 
|---|
| 637 |     DWORD o6;
 | 
|---|
| 638 |     DWORD o7;
 | 
|---|
| 639 |     DWORD l0;
 | 
|---|
| 640 |     DWORD l1;
 | 
|---|
| 641 |     DWORD l2;
 | 
|---|
| 642 |     DWORD l3;
 | 
|---|
| 643 |     DWORD l4;
 | 
|---|
| 644 |     DWORD l5;
 | 
|---|
| 645 |     DWORD l6;
 | 
|---|
| 646 |     DWORD l7;
 | 
|---|
| 647 |     DWORD i0;
 | 
|---|
| 648 |     DWORD i1;
 | 
|---|
| 649 |     DWORD i2;
 | 
|---|
| 650 |     DWORD i3;
 | 
|---|
| 651 |     DWORD i4;
 | 
|---|
| 652 |     DWORD i5;
 | 
|---|
| 653 |     DWORD i6;
 | 
|---|
| 654 |     DWORD i7;
 | 
|---|
| 655 | 
 | 
|---|
| 656 |     /* These are selected by CONTEXT_CONTROL */
 | 
|---|
| 657 |     DWORD psr;
 | 
|---|
| 658 |     DWORD pc;
 | 
|---|
| 659 |     DWORD npc;
 | 
|---|
| 660 |     DWORD y;
 | 
|---|
| 661 |     DWORD wim;
 | 
|---|
| 662 |     DWORD tbr;
 | 
|---|
| 663 | 
 | 
|---|
| 664 |     /* FIXME: floating point registers missing */
 | 
|---|
| 665 | 
 | 
|---|
| 666 | } CONTEXT;
 | 
|---|
| 667 | 
 | 
|---|
| 668 | #endif
 | 
|---|
| 669 | 
 | 
|---|
| 670 | 
 | 
|---|
| 671 | #if !defined(CONTEXT_FULL) && !defined(RC_INVOKED)
 | 
|---|
| 672 | #error You need to define a CONTEXT for your CPU
 | 
|---|
| 673 | #endif
 | 
|---|
| 674 | 
 | 
|---|
| 675 | typedef CONTEXT *PCONTEXT;
 | 
|---|
| 676 | typedef HANDLE *PHANDLE;
 | 
|---|
| 677 | 
 | 
|---|
| 678 | #ifdef __WINE__
 | 
|---|
| 679 | 
 | 
|---|
| 680 | /* Macros for easier access to i386 context registers */
 | 
|---|
| 681 | 
 | 
|---|
| 682 | #define EAX_reg(context)     ((context)->Eax)
 | 
|---|
| 683 | #define EBX_reg(context)     ((context)->Ebx)
 | 
|---|
| 684 | #define ECX_reg(context)     ((context)->Ecx)
 | 
|---|
| 685 | #define EDX_reg(context)     ((context)->Edx)
 | 
|---|
| 686 | #define ESI_reg(context)     ((context)->Esi)
 | 
|---|
| 687 | #define EDI_reg(context)     ((context)->Edi)
 | 
|---|
| 688 | #define EBP_reg(context)     ((context)->Ebp)
 | 
|---|
| 689 | 
 | 
|---|
| 690 | #define CS_reg(context)      ((context)->SegCs)
 | 
|---|
| 691 | #define DS_reg(context)      ((context)->SegDs)
 | 
|---|
| 692 | #define ES_reg(context)      ((context)->SegEs)
 | 
|---|
| 693 | #define FS_reg(context)      ((context)->SegFs)
 | 
|---|
| 694 | #define GS_reg(context)      ((context)->SegGs)
 | 
|---|
| 695 | #define SS_reg(context)      ((context)->SegSs)
 | 
|---|
| 696 | 
 | 
|---|
| 697 | #define EFL_reg(context)     ((context)->EFlags)
 | 
|---|
| 698 | #define EIP_reg(context)     ((context)->Eip)
 | 
|---|
| 699 | #define ESP_reg(context)     ((context)->Esp)
 | 
|---|
| 700 | 
 | 
|---|
| 701 | #define AX_reg(context)      (*(WORD*)&EAX_reg(context))
 | 
|---|
| 702 | #define BX_reg(context)      (*(WORD*)&EBX_reg(context))
 | 
|---|
| 703 | #define CX_reg(context)      (*(WORD*)&ECX_reg(context))
 | 
|---|
| 704 | #define DX_reg(context)      (*(WORD*)&EDX_reg(context))
 | 
|---|
| 705 | #define SI_reg(context)      (*(WORD*)&ESI_reg(context))
 | 
|---|
| 706 | #define DI_reg(context)      (*(WORD*)&EDI_reg(context))
 | 
|---|
| 707 | #define BP_reg(context)      (*(WORD*)&EBP_reg(context))
 | 
|---|
| 708 | 
 | 
|---|
| 709 | #define AL_reg(context)      (*(BYTE*)&EAX_reg(context))
 | 
|---|
| 710 | #define AH_reg(context)      (*((BYTE*)&EAX_reg(context)+1))
 | 
|---|
| 711 | #define BL_reg(context)      (*(BYTE*)&EBX_reg(context))
 | 
|---|
| 712 | #define BH_reg(context)      (*((BYTE*)&EBX_reg(context)+1))
 | 
|---|
| 713 | #define CL_reg(context)      (*(BYTE*)&ECX_reg(context))
 | 
|---|
| 714 | #define CH_reg(context)      (*((BYTE*)&ECX_reg(context)+1))
 | 
|---|
| 715 | #define DL_reg(context)      (*(BYTE*)&EDX_reg(context))
 | 
|---|
| 716 | #define DH_reg(context)      (*((BYTE*)&EDX_reg(context)+1))
 | 
|---|
| 717 | 
 | 
|---|
| 718 | #define SET_CFLAG(context)   (EFL_reg(context) |= 0x0001)
 | 
|---|
| 719 | #define RESET_CFLAG(context) (EFL_reg(context) &= ~0x0001)
 | 
|---|
| 720 | #define SET_ZFLAG(context)   (EFL_reg(context) |= 0x0040)
 | 
|---|
| 721 | #define RESET_ZFLAG(context) (EFL_reg(context) &= ~0x0040)
 | 
|---|
| 722 | 
 | 
|---|
| 723 | #define ISV86(context)       (EFL_reg(context) & 0x00020000)
 | 
|---|
| 724 | #define V86BASE(context)     ((context)->Dr7) /* ugly */
 | 
|---|
| 725 | 
 | 
|---|
| 726 | 
 | 
|---|
| 727 | /* Macros to retrieve the current context */
 | 
|---|
| 728 | 
 | 
|---|
| 729 | #ifdef __i386__
 | 
|---|
| 730 | #define _DEFINE_REGS_ENTRYPOINT( name, fn, args ) \
 | 
|---|
| 731 |     __ASM_GLOBAL_FUNC( name, \
 | 
|---|
| 732 |                        "call " __ASM_NAME("__wine_call_from_32_regs") "\n\t" \
 | 
|---|
| 733 |                        ".long " __ASM_NAME(#fn) "\n\t" \
 | 
|---|
| 734 |                        ".byte " #args ", " "0")
 | 
|---|
| 735 | #define DEFINE_REGS_ENTRYPOINT_0( name, fn ) \
 | 
|---|
| 736 |   extern void WINAPI name(void); \
 | 
|---|
| 737 |   _DEFINE_REGS_ENTRYPOINT( name, fn, 0 )
 | 
|---|
| 738 | #define DEFINE_REGS_ENTRYPOINT_1( name, fn, t1 ) \
 | 
|---|
| 739 |   extern void WINAPI name( t1 a1 ); \
 | 
|---|
| 740 |   _DEFINE_REGS_ENTRYPOINT( name, fn, 4 )
 | 
|---|
| 741 | #define DEFINE_REGS_ENTRYPOINT_2( name, fn, t1, t2 ) \
 | 
|---|
| 742 |   extern void WINAPI name( t1 a1, t2 a2 ); \
 | 
|---|
| 743 |   _DEFINE_REGS_ENTRYPOINT( name, fn, 8 )
 | 
|---|
| 744 | #define DEFINE_REGS_ENTRYPOINT_3( name, fn, t1, t2, t3 ) \
 | 
|---|
| 745 |   extern void WINAPI name( t1 a1, t2 a2, t3 a3 ); \
 | 
|---|
| 746 |   _DEFINE_REGS_ENTRYPOINT( name, fn, 12 )
 | 
|---|
| 747 | #define DEFINE_REGS_ENTRYPOINT_4( name, fn, t1, t2, t3, t4 ) \
 | 
|---|
| 748 |   extern void WINAPI name( t1 a1, t2 a2, t3 a3, t4 a4 ); \
 | 
|---|
| 749 |   _DEFINE_REGS_ENTRYPOINT( name, fn, 16 )
 | 
|---|
| 750 | 
 | 
|---|
| 751 | #endif  /* __i386__ */
 | 
|---|
| 752 | 
 | 
|---|
| 753 | #ifdef __sparc__
 | 
|---|
| 754 | /* FIXME: use getcontext() to retrieve full context */
 | 
|---|
| 755 | #define _GET_CONTEXT \
 | 
|---|
| 756 |     CONTEXT context;   \
 | 
|---|
| 757 |     do { memset(&context, 0, sizeof(CONTEXT));            \
 | 
|---|
| 758 |          context.ContextFlags = CONTEXT_CONTROL;          \
 | 
|---|
| 759 |          context.pc = (DWORD)__builtin_return_address(0); \
 | 
|---|
| 760 |        } while (0)
 | 
|---|
| 761 | 
 | 
|---|
| 762 | #define DEFINE_REGS_ENTRYPOINT_0( name, fn ) \
 | 
|---|
| 763 |   void WINAPI name ( void ) \
 | 
|---|
| 764 |   { _GET_CONTEXT; fn( &context ); }
 | 
|---|
| 765 | #define DEFINE_REGS_ENTRYPOINT_1( name, fn, t1 ) \
 | 
|---|
| 766 |   void WINAPI name ( t1 a1 ) \
 | 
|---|
| 767 |   { _GET_CONTEXT; fn( a1, &context ); }
 | 
|---|
| 768 | #define DEFINE_REGS_ENTRYPOINT_2( name, fn, t1, t2 ) \
 | 
|---|
| 769 |   void WINAPI name ( t1 a1, t2 a2 ) \
 | 
|---|
| 770 |   { _GET_CONTEXT; fn( a1, a2, &context ); }
 | 
|---|
| 771 | #define DEFINE_REGS_ENTRYPOINT_3( name, fn, t1, t2, t3 ) \
 | 
|---|
| 772 |   void WINAPI name ( t1 a1, t2 a2, t3 a3 ) \
 | 
|---|
| 773 |   { _GET_CONTEXT; fn( a1, a2, a3, &context ); }
 | 
|---|
| 774 | #define DEFINE_REGS_ENTRYPOINT_4( name, fn, t1, t2, t3, t4 ) \
 | 
|---|
| 775 |   void WINAPI name ( t1 a1, t2 a2, t3 a3, t4 a4 ) \
 | 
|---|
| 776 |   { _GET_CONTEXT; fn( a1, a2, a3, a4, &context ); }
 | 
|---|
| 777 | 
 | 
|---|
| 778 | #endif /* __sparc__ */
 | 
|---|
| 779 | 
 | 
|---|
| 780 | #ifndef DEFINE_REGS_ENTRYPOINT_0
 | 
|---|
| 781 | #error You need to define DEFINE_REGS_ENTRYPOINT macros for your CPU
 | 
|---|
| 782 | #endif
 | 
|---|
| 783 | 
 | 
|---|
| 784 | #ifdef __i386__
 | 
|---|
| 785 | # define GET_IP(context) ((LPVOID)(context)->Eip)
 | 
|---|
| 786 | #endif
 | 
|---|
| 787 | #ifdef __sparc__
 | 
|---|
| 788 | # define GET_IP(context) ((LPVOID)(context)->pc)
 | 
|---|
| 789 | #endif
 | 
|---|
| 790 | 
 | 
|---|
| 791 | #if !defined(GET_IP) && !defined(RC_INVOKED)
 | 
|---|
| 792 | # error You must define GET_IP for this CPU
 | 
|---|
| 793 | #endif
 | 
|---|
| 794 | 
 | 
|---|
| 795 | #endif  /* __WINE__ */
 | 
|---|
| 796 | 
 | 
|---|
| 797 | /* bird-start: from newer winnt.h */
 | 
|---|
| 798 | /*
 | 
|---|
| 799 |  * Language IDs
 | 
|---|
| 800 |  */
 | 
|---|
| 801 | 
 | 
|---|
| 802 | #define MAKELCID(l, s)          (MAKELONG(l, s))
 | 
|---|
| 803 | 
 | 
|---|
| 804 | #define MAKELANGID(p, s)        ((((WORD)(s))<<10) | (WORD)(p))
 | 
|---|
| 805 | #define PRIMARYLANGID(l)        ((WORD)(l) & 0x3ff)
 | 
|---|
| 806 | #define SUBLANGID(l)            ((WORD)(l) >> 10)
 | 
|---|
| 807 | 
 | 
|---|
| 808 | #define LANGIDFROMLCID(lcid)    ((WORD)(lcid))
 | 
|---|
| 809 | #define SORTIDFROMLCID(lcid)    ((WORD)((((DWORD)(lcid)) >> 16) & 0x0f))
 | 
|---|
| 810 | 
 | 
|---|
| 811 | #define LANG_SYSTEM_DEFAULT     (MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT))
 | 
|---|
| 812 | #define LANG_USER_DEFAULT       (MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT))
 | 
|---|
| 813 | #define LOCALE_SYSTEM_DEFAULT   (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))
 | 
|---|
| 814 | #define LOCALE_USER_DEFAULT     (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))
 | 
|---|
| 815 | #define LOCALE_NEUTRAL          (MAKELCID(MAKELANGID(LANG_NEUTRAL,SUBLANG_NEUTRAL),SORT_DEFAULT))
 | 
|---|
| 816 | 
 | 
|---|
| 817 | #define UNREFERENCED_PARAMETER(u)       (u)
 | 
|---|
| 818 | #define DBG_UNREFERENCED_PARAMETER(u)   (u)
 | 
|---|
| 819 | #define DBG_UNREFERENCED_LOCAL_VARIABLE(u) (u)
 | 
|---|
| 820 | 
 | 
|---|
| 821 | /* FIXME: are the symbolic names correct for LIDs:  0x17, 0x28,
 | 
|---|
| 822 |  *        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x3a, 0x3b, 0x3c
 | 
|---|
| 823 |  */
 | 
|---|
| 824 | #define LANG_NEUTRAL        0x00
 | 
|---|
| 825 | #define LANG_INVARIANT      0x7f
 | 
|---|
| 826 | 
 | 
|---|
| 827 | #define LANG_AFRIKAANS      0x36
 | 
|---|
| 828 | #define LANG_ALBANIAN       0x1c
 | 
|---|
| 829 | #define LANG_ARABIC         0x01
 | 
|---|
| 830 | #define LANG_ARMENIAN       0x2b
 | 
|---|
| 831 | #define LANG_ASSAMESE       0x4d
 | 
|---|
| 832 | #define LANG_AZERI          0x2c
 | 
|---|
| 833 | #define LANG_BASQUE         0x2d
 | 
|---|
| 834 | #define LANG_BELARUSIAN     0x23
 | 
|---|
| 835 | #define LANG_BENGALI        0x45
 | 
|---|
| 836 | #define LANG_BULGARIAN      0x02
 | 
|---|
| 837 | #define LANG_CATALAN        0x03
 | 
|---|
| 838 | #define LANG_CHINESE        0x04
 | 
|---|
| 839 | #define LANG_CROATIAN       0x1a
 | 
|---|
| 840 | #define LANG_CZECH          0x05
 | 
|---|
| 841 | #define LANG_DANISH         0x06
 | 
|---|
| 842 | #define LANG_DIVEHI         0x65
 | 
|---|
| 843 | #define LANG_DUTCH          0x13
 | 
|---|
| 844 | #define LANG_ENGLISH        0x09
 | 
|---|
| 845 | #define LANG_ESTONIAN       0x25
 | 
|---|
| 846 | #define LANG_FAEROESE       0x38
 | 
|---|
| 847 | #define LANG_FARSI          0x29
 | 
|---|
| 848 | #define LANG_FINNISH        0x0b
 | 
|---|
| 849 | #define LANG_FRENCH         0x0c
 | 
|---|
| 850 | #define LANG_GALICIAN       0x56
 | 
|---|
| 851 | #define LANG_GEORGIAN       0x37
 | 
|---|
| 852 | #define LANG_GERMAN         0x07
 | 
|---|
| 853 | #define LANG_GREEK          0x08
 | 
|---|
| 854 | #define LANG_GUJARATI       0x47
 | 
|---|
| 855 | #define LANG_HEBREW         0x0d
 | 
|---|
| 856 | #define LANG_HINDI          0x39
 | 
|---|
| 857 | #define LANG_HUNGARIAN      0x0e
 | 
|---|
| 858 | #define LANG_ICELANDIC      0x0f
 | 
|---|
| 859 | #define LANG_INDONESIAN     0x21
 | 
|---|
| 860 | #define LANG_ITALIAN        0x10
 | 
|---|
| 861 | #define LANG_JAPANESE       0x11
 | 
|---|
| 862 | #define LANG_KANNADA        0x4b
 | 
|---|
| 863 | #define LANG_KASHMIRI       0x60
 | 
|---|
| 864 | #define LANG_KAZAK          0x3f
 | 
|---|
| 865 | #define LANG_KONKANI        0x57
 | 
|---|
| 866 | #define LANG_KOREAN         0x12
 | 
|---|
| 867 | #define LANG_KYRGYZ         0x40
 | 
|---|
| 868 | #define LANG_LATVIAN        0x26
 | 
|---|
| 869 | #define LANG_LITHUANIAN     0x27
 | 
|---|
| 870 | #define LANG_MACEDONIAN     0x2f
 | 
|---|
| 871 | #define LANG_MALAY          0x3e
 | 
|---|
| 872 | #define LANG_MALAYALAM      0x4c
 | 
|---|
| 873 | #define LANG_MANIPURI       0x58
 | 
|---|
| 874 | #define LANG_MARATHI        0x4e
 | 
|---|
| 875 | #define LANG_MONGOLIAN      0x50
 | 
|---|
| 876 | #define LANG_NEPALI         0x61
 | 
|---|
| 877 | #define LANG_NORWEGIAN      0x14
 | 
|---|
| 878 | #define LANG_ORIYA          0x48
 | 
|---|
| 879 | #define LANG_POLISH         0x15
 | 
|---|
| 880 | #define LANG_PORTUGUESE     0x16
 | 
|---|
| 881 | #define LANG_PUNJABI        0x46
 | 
|---|
| 882 | #define LANG_ROMANIAN       0x18
 | 
|---|
| 883 | #define LANG_RUSSIAN        0x19
 | 
|---|
| 884 | #define LANG_SANSKRIT       0x4f
 | 
|---|
| 885 | #define LANG_SERBIAN        0x1a
 | 
|---|
| 886 | #define LANG_SINDHI         0x59
 | 
|---|
| 887 | #define LANG_SLOVAK         0x1b
 | 
|---|
| 888 | #define LANG_SLOVENIAN      0x24
 | 
|---|
| 889 | #define LANG_SPANISH        0x0a
 | 
|---|
| 890 | #define LANG_SWAHILI        0x41
 | 
|---|
| 891 | #define LANG_SWEDISH        0x1d
 | 
|---|
| 892 | #define LANG_SYRIAC         0x5a
 | 
|---|
| 893 | #define LANG_TAMIL          0x49
 | 
|---|
| 894 | #define LANG_TATAR          0x44
 | 
|---|
| 895 | #define LANG_TELUGU         0x4a
 | 
|---|
| 896 | #define LANG_THAI           0x1e
 | 
|---|
| 897 | #define LANG_TURKISH        0x1f
 | 
|---|
| 898 | #define LANG_UKRAINIAN      0x22
 | 
|---|
| 899 | #define LANG_URDU           0x20
 | 
|---|
| 900 | #define LANG_UZBEK          0x43
 | 
|---|
| 901 | #define LANG_VIETNAMESE     0x2a
 | 
|---|
| 902 | 
 | 
|---|
| 903 | /* FIXME: these are not in the Windows header */
 | 
|---|
| 904 | #define LANG_GAELIC         0x3c
 | 
|---|
| 905 | #define LANG_MALTESE        0x3a
 | 
|---|
| 906 | #define LANG_MAORI          0x28
 | 
|---|
| 907 | #define LANG_RHAETO_ROMANCE 0x17
 | 
|---|
| 908 | #define LANG_SAAMI          0x3b
 | 
|---|
| 909 | #define LANG_SORBIAN        0x2e
 | 
|---|
| 910 | #define LANG_SUTU           0x30
 | 
|---|
| 911 | #define LANG_TSONGA         0x31
 | 
|---|
| 912 | #define LANG_TSWANA         0x32
 | 
|---|
| 913 | #define LANG_VENDA          0x33
 | 
|---|
| 914 | #define LANG_XHOSA          0x34
 | 
|---|
| 915 | #define LANG_ZULU           0x35
 | 
|---|
| 916 | 
 | 
|---|
| 917 | /* non standard; keep the number high enough (but < 0xff) */
 | 
|---|
| 918 | #define LANG_ESPERANTO                   0x8f
 | 
|---|
| 919 | #define LANG_WALON                       0x90
 | 
|---|
| 920 | #define LANG_CORNISH                     0x91
 | 
|---|
| 921 | #define LANG_WELSH                       0x92
 | 
|---|
| 922 | #define LANG_BRETON                      0x93
 | 
|---|
| 923 | 
 | 
|---|
| 924 | /* Sublanguage definitions */
 | 
|---|
| 925 | #define SUBLANG_NEUTRAL                  0x00    /* language neutral */
 | 
|---|
| 926 | #define SUBLANG_DEFAULT                  0x01    /* user default */
 | 
|---|
| 927 | #define SUBLANG_SYS_DEFAULT              0x02    /* system default */
 | 
|---|
| 928 | 
 | 
|---|
| 929 | #define SUBLANG_ARABIC_SAUDI_ARABIA        0x01
 | 
|---|
| 930 | #define SUBLANG_ARABIC_IRAQ                0x02
 | 
|---|
| 931 | #define SUBLANG_ARABIC_EGYPT               0x03
 | 
|---|
| 932 | #define SUBLANG_ARABIC_LIBYA               0x04
 | 
|---|
| 933 | #define SUBLANG_ARABIC_ALGERIA             0x05
 | 
|---|
| 934 | #define SUBLANG_ARABIC_MOROCCO             0x06
 | 
|---|
| 935 | #define SUBLANG_ARABIC_TUNISIA             0x07
 | 
|---|
| 936 | #define SUBLANG_ARABIC_OMAN                0x08
 | 
|---|
| 937 | #define SUBLANG_ARABIC_YEMEN               0x09
 | 
|---|
| 938 | #define SUBLANG_ARABIC_SYRIA               0x0a
 | 
|---|
| 939 | #define SUBLANG_ARABIC_JORDAN              0x0b
 | 
|---|
| 940 | #define SUBLANG_ARABIC_LEBANON             0x0c
 | 
|---|
| 941 | #define SUBLANG_ARABIC_KUWAIT              0x0d
 | 
|---|
| 942 | #define SUBLANG_ARABIC_UAE                 0x0e
 | 
|---|
| 943 | #define SUBLANG_ARABIC_BAHRAIN             0x0f
 | 
|---|
| 944 | #define SUBLANG_ARABIC_QATAR               0x10
 | 
|---|
| 945 | #define SUBLANG_AZERI_LATIN                0x01
 | 
|---|
| 946 | #define SUBLANG_AZERI_CYRILLIC             0x02
 | 
|---|
| 947 | #define SUBLANG_CHINESE_TRADITIONAL        0x01
 | 
|---|
| 948 | #define SUBLANG_CHINESE_SIMPLIFIED         0x02
 | 
|---|
| 949 | #define SUBLANG_CHINESE_HONGKONG           0x03
 | 
|---|
| 950 | #define SUBLANG_CHINESE_SINGAPORE          0x04
 | 
|---|
| 951 | #define SUBLANG_CHINESE_MACAU              0x05
 | 
|---|
| 952 | #define SUBLANG_DUTCH                      0x01
 | 
|---|
| 953 | #define SUBLANG_DUTCH_BELGIAN              0x02
 | 
|---|
| 954 | #define SUBLANG_ENGLISH_US                 0x01
 | 
|---|
| 955 | #define SUBLANG_ENGLISH_UK                 0x02
 | 
|---|
| 956 | #define SUBLANG_ENGLISH_AUS                0x03
 | 
|---|
| 957 | #define SUBLANG_ENGLISH_CAN                0x04
 | 
|---|
| 958 | #define SUBLANG_ENGLISH_NZ                 0x05
 | 
|---|
| 959 | #define SUBLANG_ENGLISH_EIRE               0x06
 | 
|---|
| 960 | #define SUBLANG_ENGLISH_SOUTH_AFRICA       0x07
 | 
|---|
| 961 | #define SUBLANG_ENGLISH_JAMAICA            0x08
 | 
|---|
| 962 | #define SUBLANG_ENGLISH_CARIBBEAN          0x09
 | 
|---|
| 963 | #define SUBLANG_ENGLISH_BELIZE             0x0a
 | 
|---|
| 964 | #define SUBLANG_ENGLISH_TRINIDAD           0x0b
 | 
|---|
| 965 | #define SUBLANG_ENGLISH_ZIMBABWE           0x0c
 | 
|---|
| 966 | #define SUBLANG_ENGLISH_PHILIPPINES        0x0d
 | 
|---|
| 967 | #define SUBLANG_FRENCH                     0x01
 | 
|---|
| 968 | #define SUBLANG_FRENCH_BELGIAN             0x02
 | 
|---|
| 969 | #define SUBLANG_FRENCH_CANADIAN            0x03
 | 
|---|
| 970 | #define SUBLANG_FRENCH_SWISS               0x04
 | 
|---|
| 971 | #define SUBLANG_FRENCH_LUXEMBOURG          0x05
 | 
|---|
| 972 | #define SUBLANG_FRENCH_MONACO              0x06
 | 
|---|
| 973 | #define SUBLANG_GERMAN                     0x01
 | 
|---|
| 974 | #define SUBLANG_GERMAN_SWISS               0x02
 | 
|---|
| 975 | #define SUBLANG_GERMAN_AUSTRIAN            0x03
 | 
|---|
| 976 | #define SUBLANG_GERMAN_LUXEMBOURG          0x04
 | 
|---|
| 977 | #define SUBLANG_GERMAN_LIECHTENSTEIN       0x05
 | 
|---|
| 978 | #define SUBLANG_ITALIAN                    0x01
 | 
|---|
| 979 | #define SUBLANG_ITALIAN_SWISS              0x02
 | 
|---|
| 980 | #define SUBLANG_KASHMIRI_SASIA             0x02
 | 
|---|
| 981 | #define SUBLANG_KASHMIRI_INDIA             0x02
 | 
|---|
| 982 | #define SUBLANG_KOREAN                     0x01
 | 
|---|
| 983 | #ifdef __WIN32OS2__                     /* This have been removed from the SDK. But kernel32 use it. */
 | 
|---|
| 984 | #define SUBLANG_KOREAN_JOHAB               0x02
 | 
|---|
| 985 | #endif
 | 
|---|
| 986 | #define SUBLANG_LITHUANIAN                 0x01
 | 
|---|
| 987 | #define SUBLANG_MALAY_MALAYSIA             0x01
 | 
|---|
| 988 | #define SUBLANG_MALAY_BRUNEI_DARUSSALAM    0x02
 | 
|---|
| 989 | #define SUBLANG_NEPALI_INDIA               0x02
 | 
|---|
| 990 | #define SUBLANG_NORWEGIAN_BOKMAL           0x01
 | 
|---|
| 991 | #define SUBLANG_NORWEGIAN_NYNORSK          0x02
 | 
|---|
| 992 | #define SUBLANG_PORTUGUESE                 0x02
 | 
|---|
| 993 | #define SUBLANG_PORTUGUESE_BRAZILIAN       0x01
 | 
|---|
| 994 | #define SUBLANG_SERBIAN_LATIN              0x02
 | 
|---|
| 995 | #define SUBLANG_SERBIAN_CYRILLIC           0x03
 | 
|---|
| 996 | #define SUBLANG_SPANISH                    0x01
 | 
|---|
| 997 | #define SUBLANG_SPANISH_MEXICAN            0x02
 | 
|---|
| 998 | #define SUBLANG_SPANISH_MODERN             0x03
 | 
|---|
| 999 | #define SUBLANG_SPANISH_GUATEMALA          0x04
 | 
|---|
| 1000 | #define SUBLANG_SPANISH_COSTA_RICA         0x05
 | 
|---|
| 1001 | #define SUBLANG_SPANISH_PANAMA             0x06
 | 
|---|
| 1002 | #define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07
 | 
|---|
| 1003 | #define SUBLANG_SPANISH_VENEZUELA          0x08
 | 
|---|
| 1004 | #define SUBLANG_SPANISH_COLOMBIA           0x09
 | 
|---|
| 1005 | #define SUBLANG_SPANISH_PERU               0x0a
 | 
|---|
| 1006 | #define SUBLANG_SPANISH_ARGENTINA          0x0b
 | 
|---|
| 1007 | #define SUBLANG_SPANISH_ECUADOR            0x0c
 | 
|---|
| 1008 | #define SUBLANG_SPANISH_CHILE              0x0d
 | 
|---|
| 1009 | #define SUBLANG_SPANISH_URUGUAY            0x0e
 | 
|---|
| 1010 | #define SUBLANG_SPANISH_PARAGUAY           0x0f
 | 
|---|
| 1011 | #define SUBLANG_SPANISH_BOLIVIA            0x10
 | 
|---|
| 1012 | #define SUBLANG_SPANISH_EL_SALVADOR        0x11
 | 
|---|
| 1013 | #define SUBLANG_SPANISH_HONDURAS           0x12
 | 
|---|
| 1014 | #define SUBLANG_SPANISH_NICARAGUA          0x13
 | 
|---|
| 1015 | #define SUBLANG_SPANISH_PUERTO_RICO        0x14
 | 
|---|
| 1016 | #define SUBLANG_SWEDISH                    0x01
 | 
|---|
| 1017 | #define SUBLANG_SWEDISH_FINLAND            0x02
 | 
|---|
| 1018 | #define SUBLANG_URDU_PAKISTAN              0x01
 | 
|---|
| 1019 | #define SUBLANG_URDU_INDIA                 0x02
 | 
|---|
| 1020 | #define SUBLANG_UZBEK_LATIN                0x01
 | 
|---|
| 1021 | #define SUBLANG_UZBEK_CYRILLIC             0x02
 | 
|---|
| 1022 | 
 | 
|---|
| 1023 | /* FIXME: these are not in the Windows header */
 | 
|---|
| 1024 | #define SUBLANG_DUTCH_SURINAM              0x03
 | 
|---|
| 1025 | #define SUBLANG_ROMANIAN                   0x01
 | 
|---|
| 1026 | #define SUBLANG_ROMANIAN_MOLDAVIA          0x02
 | 
|---|
| 1027 | #define SUBLANG_RUSSIAN                    0x01
 | 
|---|
| 1028 | #define SUBLANG_RUSSIAN_MOLDAVIA           0x02
 | 
|---|
| 1029 | #define SUBLANG_CROATIAN                   0x01
 | 
|---|
| 1030 | #define SUBLANG_LITHUANIAN_CLASSIC         0x02
 | 
|---|
| 1031 | #define SUBLANG_GAELIC                     0x01
 | 
|---|
| 1032 | #define SUBLANG_GAELIC_SCOTTISH            0x02
 | 
|---|
| 1033 | #define SUBLANG_GAELIC_MANX                0x03
 | 
|---|
| 1034 | 
 | 
|---|
| 1035 | 
 | 
|---|
| 1036 | /*
 | 
|---|
| 1037 |  * Sort definitions
 | 
|---|
| 1038 |  */
 | 
|---|
| 1039 | 
 | 
|---|
| 1040 | #define SORT_DEFAULT                     0x0
 | 
|---|
| 1041 | #define SORT_JAPANESE_XJIS               0x0
 | 
|---|
| 1042 | #define SORT_JAPANESE_UNICODE            0x1
 | 
|---|
| 1043 | #define SORT_CHINESE_BIG5                0x0
 | 
|---|
| 1044 | #define SORT_CHINESE_UNICODE             0x1
 | 
|---|
| 1045 | #define SORT_KOREAN_KSC                  0x0
 | 
|---|
| 1046 | #define SORT_KOREAN_UNICODE              0x1
 | 
|---|
| 1047 | 
 | 
|---|
| 1048 | 
 | 
|---|
| 1049 | 
 | 
|---|
| 1050 | /*
 | 
|---|
| 1051 |  * Definitions for IsTextUnicode()
 | 
|---|
| 1052 |  */
 | 
|---|
| 1053 | 
 | 
|---|
| 1054 | #define IS_TEXT_UNICODE_ASCII16            0x0001
 | 
|---|
| 1055 | #define IS_TEXT_UNICODE_STATISTICS         0x0002
 | 
|---|
| 1056 | #define IS_TEXT_UNICODE_CONTROLS           0x0004
 | 
|---|
| 1057 | #define IS_TEXT_UNICODE_SIGNATURE          0x0008
 | 
|---|
| 1058 | #define IS_TEXT_UNICODE_UNICODE_MASK       0x000F
 | 
|---|
| 1059 | #define IS_TEXT_UNICODE_REVERSE_ASCII16    0x0010
 | 
|---|
| 1060 | #define IS_TEXT_UNICODE_REVERSE_STATISTICS 0x0020
 | 
|---|
| 1061 | #define IS_TEXT_UNICODE_REVERSE_CONTROLS   0x0040
 | 
|---|
| 1062 | #define IS_TEXT_UNICODE_REVERSE_SIGNATURE  0x0080
 | 
|---|
| 1063 | #define IS_TEXT_UNICODE_REVERSE_MASK       0x00F0
 | 
|---|
| 1064 | #define IS_TEXT_UNICODE_ILLEGAL_CHARS      0x0100
 | 
|---|
| 1065 | #define IS_TEXT_UNICODE_ODD_LENGTH         0x0200
 | 
|---|
| 1066 | #define IS_TEXT_UNICODE_DBCS_LEADBYTE      0x0400
 | 
|---|
| 1067 | #define IS_TEXT_UNICODE_NOT_UNICODE_MASK   0x0F00
 | 
|---|
| 1068 | #define IS_TEXT_UNICODE_NULL_BYTES         0x1000
 | 
|---|
| 1069 | #define IS_TEXT_UNICODE_NOT_ASCII_MASK     0xF000
 | 
|---|
| 1070 | 
 | 
|---|
| 1071 | /* bird-end: from newer winnt.h */
 | 
|---|
| 1072 | 
 | 
|---|
| 1073 | 
 | 
|---|
| 1074 | 
 | 
|---|
| 1075 | /* Error Masks */
 | 
|---|
| 1076 | #define APPLICATION_ERROR_MASK       0x20000000
 | 
|---|
| 1077 | #define ERROR_SEVERITY_SUCCESS       0x00000000
 | 
|---|
| 1078 | #define ERROR_SEVERITY_INFORMATIONAL 0x40000000
 | 
|---|
| 1079 | #define ERROR_SEVERITY_WARNING       0x80000000
 | 
|---|
| 1080 | #define ERROR_SEVERITY_ERROR         0xC0000000
 | 
|---|
| 1081 | 
 | 
|---|
| 1082 | /*
 | 
|---|
| 1083 |  * Exception codes
 | 
|---|
| 1084 |  */
 | 
|---|
| 1085 | 
 | 
|---|
| 1086 | #define STATUS_SUCCESS                   0x00000000
 | 
|---|
| 1087 | #define STATUS_WAIT_0                    0x00000000
 | 
|---|
| 1088 | #define STATUS_ABANDONED_WAIT_0          0x00000080
 | 
|---|
| 1089 | #define STATUS_USER_APC                  0x000000C0
 | 
|---|
| 1090 | #define STATUS_TIMEOUT                   0x00000102
 | 
|---|
| 1091 | #define STATUS_PENDING                   0x00000103
 | 
|---|
| 1092 | 
 | 
|---|
| 1093 | #define STATUS_GUARD_PAGE_VIOLATION      0x80000001
 | 
|---|
| 1094 | #define STATUS_DATATYPE_MISALIGNMENT     0x80000002
 | 
|---|
| 1095 | #define STATUS_BREAKPOINT                0x80000003
 | 
|---|
| 1096 | #define STATUS_SINGLE_STEP               0x80000004
 | 
|---|
| 1097 | #define STATUS_BUFFER_OVERFLOW           0x80000005
 | 
|---|
| 1098 | #define STATUS_NO_MORE_FILES             0x80000006
 | 
|---|
| 1099 | #define STATUS_WAKE_SYSTEM_DEBUGGER      0x80000007
 | 
|---|
| 1100 | 
 | 
|---|
| 1101 | #define STATUS_HANDLES_CLOSED            0x8000000A
 | 
|---|
| 1102 | #define STATUS_NO_INHERITANCE            0x8000000B
 | 
|---|
| 1103 | #define STATUS_GUID_SUBSTITUTION_MADE    0x8000000C
 | 
|---|
| 1104 | #define STATUS_PARTIAL_COPY              0x8000000D
 | 
|---|
| 1105 | #define STATUS_DEVICE_PAPER_EMPTY        0x8000000E
 | 
|---|
| 1106 | #define STATUS_DEVICE_POWERED_OFF        0x8000000F
 | 
|---|
| 1107 | #define STATUS_DEVICE_OFF_LINE           0x80000010
 | 
|---|
| 1108 | #define STATUS_DEVICE_BUSY               0x80000011
 | 
|---|
| 1109 | #define STATUS_NO_MORE_EAS               0x80000012
 | 
|---|
| 1110 | #define STATUS_INVALID_EA_NAME           0x80000013
 | 
|---|
| 1111 | #define STATUS_EA_LIST_INCONSISTENT      0x80000014
 | 
|---|
| 1112 | #define STATUS_INVALID_EA_FLAG           0x80000015
 | 
|---|
| 1113 | #define STATUS_VERIFY_REQUIRED           0x80000016
 | 
|---|
| 1114 | #define STATUS_EXTRANEOUS_INFORMATION    0x80000017
 | 
|---|
| 1115 | #define STATUS_RXACT_COMMIT_NECESSARY    0x80000018
 | 
|---|
| 1116 | #define STATUS_NO_MORE_ENTRIES           0x8000001A
 | 
|---|
| 1117 | #define STATUS_FILEMARK_DETECTED         0x8000001B
 | 
|---|
| 1118 | #define STATUS_MEDIA_CHANGED             0x8000001C
 | 
|---|
| 1119 | #define STATUS_BUS_RESET                 0x8000001D
 | 
|---|
| 1120 | #define STATUS_END_OF_MEDIA              0x8000001E
 | 
|---|
| 1121 | #define STATUS_BEGINNING_OF_MEDIA        0x8000001F
 | 
|---|
| 1122 | #define STATUS_MEDIA_CHECK               0x80000020
 | 
|---|
| 1123 | #define STATUS_SETMARK_DETECTED          0x80000021
 | 
|---|
| 1124 | #define STATUS_NO_DATA_DETECTED          0x80000022
 | 
|---|
| 1125 | #define STATUS_REDIRECTOR_HAS_OPEN_HANDLES 0x80000023
 | 
|---|
| 1126 | #define STATUS_SERVER_HAS_OPEN_HANDLES   0x80000024
 | 
|---|
| 1127 | #define STATUS_ALREADY_DISCONNECTED      0x80000025
 | 
|---|
| 1128 | #define STATUS_LONGJUMP                  0x80000026
 | 
|---|
| 1129 | 
 | 
|---|
| 1130 | #define STATUS_UNSUCCESSFUL              0xC0000001
 | 
|---|
| 1131 | #define STATUS_NOT_IMPLEMENTED           0xC0000002
 | 
|---|
| 1132 | #define STATUS_INVALID_INFO_CLASS        0xC0000003
 | 
|---|
| 1133 | #define STATUS_INFO_LENGTH_MISMATCH      0xC0000004
 | 
|---|
| 1134 | #define STATUS_ACCESS_VIOLATION          0xC0000005
 | 
|---|
| 1135 | #define STATUS_IN_PAGE_ERROR             0xC0000006
 | 
|---|
| 1136 | #define STATUS_PAGEFILE_QUOTA            0xC0000007
 | 
|---|
| 1137 | #define STATUS_INVALID_HANDLE            0xC0000008
 | 
|---|
| 1138 | #define STATUS_BAD_INITIAL_STACK         0xC0000009
 | 
|---|
| 1139 | #define STATUS_BAD_INITIAL_PC            0xC000000A
 | 
|---|
| 1140 | #define STATUS_INVALID_CID               0xC000000B
 | 
|---|
| 1141 | #define STATUS_TIMER_NOT_CANCELED        0xC000000C
 | 
|---|
| 1142 | #define STATUS_INVALID_PARAMETER         0xC000000D
 | 
|---|
| 1143 | #define STATUS_NO_SUCH_DEVICE            0xC000000E
 | 
|---|
| 1144 | #define STATUS_NO_SUCH_FILE              0xC000000F
 | 
|---|
| 1145 | #define STATUS_INVALID_DEVICE_REQUEST    0xC0000010
 | 
|---|
| 1146 | #define STATUS_END_OF_FILE               0xC0000011
 | 
|---|
| 1147 | #define STATUS_WRONG_VOLUME              0xC0000012
 | 
|---|
| 1148 | #define STATUS_NO_MEDIA_IN_DEVICE        0xC0000013
 | 
|---|
| 1149 | #define STATUS_UNRECOGNIZED_MEDIA        0xC0000014
 | 
|---|
| 1150 | #define STATUS_NONEXISTENT_SECTOR        0xC0000015
 | 
|---|
| 1151 | #define STATUS_MORE_PROCESSING_REQUIRED  0xC0000016
 | 
|---|
| 1152 | #define STATUS_NO_MEMORY                 0xC0000017
 | 
|---|
| 1153 | #define STATUS_CONFLICTING_ADDRESSES     0xC0000018
 | 
|---|
| 1154 | #define STATUS_NOT_MAPPED_VIEW           0xC0000019
 | 
|---|
| 1155 | #define STATUS_UNABLE_TO_FREE_VM         0xC000001A
 | 
|---|
| 1156 | #define STATUS_UNABLE_TO_DELETE_SECTION  0xC000001B
 | 
|---|
| 1157 | #define STATUS_INVALID_SYSTEM_SERVICE    0xC000001C
 | 
|---|
| 1158 | #define STATUS_ILLEGAL_INSTRUCTION       0xC000001D
 | 
|---|
| 1159 | #define STATUS_INVALID_LOCK_SEQUENCE     0xC000001E
 | 
|---|
| 1160 | #define STATUS_INVALID_VIEW_SIZE         0xC000001F
 | 
|---|
| 1161 | #define STATUS_INVALID_FILE_FOR_SECTION  0xC0000020
 | 
|---|
| 1162 | #define STATUS_ALREADY_COMMITTED         0xC0000021
 | 
|---|
| 1163 | #define STATUS_ACCESS_DENIED             0xC0000022
 | 
|---|
| 1164 | #define STATUS_BUFFER_TOO_SMALL          0xC0000023
 | 
|---|
| 1165 | #define STATUS_OBJECT_TYPE_MISMATCH      0xC0000024
 | 
|---|
| 1166 | #define STATUS_NONCONTINUABLE_EXCEPTION  0xC0000025
 | 
|---|
| 1167 | #define STATUS_INVALID_DISPOSITION       0xC0000026
 | 
|---|
| 1168 | #define STATUS_UNWIND                    0xC0000027
 | 
|---|
| 1169 | #define STATUS_BAD_STACK                 0xC0000028
 | 
|---|
| 1170 | #define STATUS_INVALID_UNWIND_TARGET     0xC0000029
 | 
|---|
| 1171 | #define STATUS_NOT_LOCKED                0xC000002A
 | 
|---|
| 1172 | #define STATUS_PARITY_ERROR              0xC000002B
 | 
|---|
| 1173 | #define STATUS_UNABLE_TO_DECOMMIT_VM     0xC000002C
 | 
|---|
| 1174 | #define STATUS_NOT_COMMITTED             0xC000002D
 | 
|---|
| 1175 | #define STATUS_INVALID_PORT_ATTRIBUTES   0xC000002E
 | 
|---|
| 1176 | #define STATUS_PORT_MESSAGE_TOO_LONG     0xC000002F
 | 
|---|
| 1177 | #define STATUS_INVALID_PARAMETER_MIX     0xC0000030
 | 
|---|
| 1178 | #define STATUS_INVALID_QUOTA_LOWER       0xC0000031
 | 
|---|
| 1179 | #define STATUS_DISK_CORRUPT_ERROR        0xC0000032
 | 
|---|
| 1180 | #define STATUS_OBJECT_NAME_INVALID       0xC0000033
 | 
|---|
| 1181 | #define STATUS_OBJECT_NAME_NOT_FOUND     0xC0000034
 | 
|---|
| 1182 | #define STATUS_OBJECT_NAME_COLLISION     0xC0000035
 | 
|---|
| 1183 | #define STATUS_PORT_DISCONNECTED         0xC0000037
 | 
|---|
| 1184 | #define STATUS_DEVICE_ALREADY_ATTACHED   0xC0000038
 | 
|---|
| 1185 | #define STATUS_OBJECT_PATH_INVALID       0xC0000039
 | 
|---|
| 1186 | #define STATUS_OBJECT_PATH_NOT_FOUND     0xC000003A
 | 
|---|
| 1187 | #define STATUS_PATH_SYNTAX_BAD           0xC000003B
 | 
|---|
| 1188 | #define STATUS_DATA_OVERRUN              0xC000003C
 | 
|---|
| 1189 | #define STATUS_DATA_LATE_ERROR           0xC000003D
 | 
|---|
| 1190 | #define STATUS_DATA_ERROR                0xC000003E
 | 
|---|
| 1191 | #define STATUS_CRC_ERROR                 0xC000003F
 | 
|---|
| 1192 | #define STATUS_SECTION_TOO_BIG           0xC0000040
 | 
|---|
| 1193 | #define STATUS_PORT_CONNECTION_REFUSED   0xC0000041
 | 
|---|
| 1194 | #define STATUS_INVALID_PORT_HANDLE       0xC0000042
 | 
|---|
| 1195 | #define STATUS_SHARING_VIOLATION         0xC0000043
 | 
|---|
| 1196 | #define STATUS_QUOTA_EXCEEDED            0xC0000044
 | 
|---|
| 1197 | #define STATUS_INVALID_PAGE_PROTECTION   0xC0000045
 | 
|---|
| 1198 | #define STATUS_MUTANT_NOT_OWNED          0xC0000046
 | 
|---|
| 1199 | #define STATUS_SEMAPHORE_LIMIT_EXCEEDED  0xC0000047
 | 
|---|
| 1200 | #define STATUS_PORT_ALREADY_SET          0xC0000048
 | 
|---|
| 1201 | #define STATUS_SECTION_NOT_IMAGE         0xC0000049
 | 
|---|
| 1202 | #define STATUS_SUSPEND_COUNT_EXCEEDED    0xC000004A
 | 
|---|
| 1203 | #define STATUS_THREAD_IS_TERMINATING     0xC000004B
 | 
|---|
| 1204 | #define STATUS_BAD_WORKING_SET_LIMIT     0xC000004C
 | 
|---|
| 1205 | #define STATUS_INCOMPATIBLE_FILE_MAP     0xC000004D
 | 
|---|
| 1206 | #define STATUS_SECTION_PROTECTION        0xC000004E
 | 
|---|
| 1207 | #define STATUS_EAS_NOT_SUPPORTED         0xC000004F
 | 
|---|
| 1208 | #define STATUS_EA_TOO_LARGE              0xC0000050
 | 
|---|
| 1209 | #define STATUS_NONEXISTENT_EA_ENTRY      0xC0000051
 | 
|---|
| 1210 | #define STATUS_NO_EAS_ON_FILE            0xC0000052
 | 
|---|
| 1211 | #define STATUS_EA_CORRUPT_ERROR          0xC0000053
 | 
|---|
| 1212 | #define STATUS_FILE_LOCK_CONFLICT        0xC0000054
 | 
|---|
| 1213 | #define STATUS_LOCK_NOT_GRANTED          0xC0000055
 | 
|---|
| 1214 | #define STATUS_DELETE_PENDING            0xC0000056
 | 
|---|
| 1215 | #define STATUS_CTL_FILE_NOT_SUPPORTED    0xC0000057
 | 
|---|
| 1216 | #define STATUS_UNKNOWN_REVISION          0xC0000058
 | 
|---|
| 1217 | #define STATUS_REVISION_MISMATCH         0xC0000059
 | 
|---|
| 1218 | #define STATUS_INVALID_OWNER             0xC000005A
 | 
|---|
| 1219 | #define STATUS_INVALID_PRIMARY_GROUP     0xC000005B
 | 
|---|
| 1220 | #define STATUS_NO_IMPERSONATION_TOKEN    0xC000005C
 | 
|---|
| 1221 | #define STATUS_CANT_DISABLE_MANDATORY    0xC000005D
 | 
|---|
| 1222 | #define STATUS_NO_LOGON_SERVERS          0xC000005E
 | 
|---|
| 1223 | #define STATUS_NO_SUCH_LOGON_SESSION     0xC000005F
 | 
|---|
| 1224 | #define STATUS_NO_SUCH_PRIVILEGE         0xC0000060
 | 
|---|
| 1225 | #define STATUS_PRIVILEGE_NOT_HELD        0xC0000061
 | 
|---|
| 1226 | #define STATUS_INVALID_ACCOUNT_NAME      0xC0000062
 | 
|---|
| 1227 | #define STATUS_USER_EXISTS               0xC0000063
 | 
|---|
| 1228 | #define STATUS_NO_SUCH_USER              0xC0000064
 | 
|---|
| 1229 | #define STATUS_GROUP_EXISTS              0xC0000065
 | 
|---|
| 1230 | #define STATUS_NO_SUCH_GROUP             0xC0000066
 | 
|---|
| 1231 | #define STATUS_MEMBER_IN_GROUP           0xC0000067
 | 
|---|
| 1232 | #define STATUS_MEMBER_NOT_IN_GROUP       0xC0000068
 | 
|---|
| 1233 | #define STATUS_LAST_ADMIN                0xC0000069
 | 
|---|
| 1234 | #define STATUS_WRONG_PASSWORD            0xC000006A
 | 
|---|
| 1235 | #define STATUS_ILL_FORMED_PASSWORD       0xC000006B
 | 
|---|
| 1236 | #define STATUS_PASSWORD_RESTRICTION      0xC000006C
 | 
|---|
| 1237 | #define STATUS_LOGON_FAILURE             0xC000006D
 | 
|---|
| 1238 | #define STATUS_ACCOUNT_RESTRICTION       0xC000006E
 | 
|---|
| 1239 | #define STATUS_INVALID_LOGON_HOURS       0xC000006F
 | 
|---|
| 1240 | #define STATUS_INVALID_WORKSTATION       0xC0000070
 | 
|---|
| 1241 | #define STATUS_PASSWORD_EXPIRED          0xC0000071
 | 
|---|
| 1242 | #define STATUS_ACCOUNT_DISABLED          0xC0000072
 | 
|---|
| 1243 | #define STATUS_NONE_MAPPED               0xC0000073
 | 
|---|
| 1244 | #define STATUS_TOO_MANY_LUIDS_REQUESTED  0xC0000074
 | 
|---|
| 1245 | #define STATUS_LUIDS_EXHAUSTED           0xC0000075
 | 
|---|
| 1246 | #define STATUS_INVALID_SUB_AUTHORITY     0xC0000076
 | 
|---|
| 1247 | #define STATUS_INVALID_ACL               0xC0000077
 | 
|---|
| 1248 | #define STATUS_INVALID_SID               0xC0000078
 | 
|---|
| 1249 | #define STATUS_INVALID_SECURITY_DESCR    0xC0000079
 | 
|---|
| 1250 | #define STATUS_PROCEDURE_NOT_FOUND       0xC000007A
 | 
|---|
| 1251 | #define STATUS_INVALID_IMAGE_FORMAT      0xC000007B
 | 
|---|
| 1252 | #define STATUS_NO_TOKEN                  0xC000007C
 | 
|---|
| 1253 | #define STATUS_BAD_INHERITANCE_ACL       0xC000007D
 | 
|---|
| 1254 | #define STATUS_RANGE_NOT_LOCKED          0xC000007E
 | 
|---|
| 1255 | #define STATUS_DISK_FULL                 0xC000007F
 | 
|---|
| 1256 | #define STATUS_SERVER_DISABLED           0xC0000080
 | 
|---|
| 1257 | #define STATUS_SERVER_NOT_DISABLED       0xC0000081
 | 
|---|
| 1258 | #define STATUS_TOO_MANY_GUIDS_REQUESTED  0xC0000082
 | 
|---|
| 1259 | #define STATUS_GUIDS_EXHAUSTED           0xC0000083
 | 
|---|
| 1260 | #define STATUS_INVALID_ID_AUTHORITY      0xC0000084
 | 
|---|
| 1261 | #define STATUS_AGENTS_EXHAUSTED          0xC0000085
 | 
|---|
| 1262 | #define STATUS_INVALID_VOLUME_LABEL      0xC0000086
 | 
|---|
| 1263 | #define STATUS_SECTION_NOT_EXTENDED      0xC0000087
 | 
|---|
| 1264 | #define STATUS_NOT_MAPPED_DATA           0xC0000088
 | 
|---|
| 1265 | #define STATUS_RESOURCE_DATA_NOT_FOUND   0xC0000089
 | 
|---|
| 1266 | #define STATUS_RESOURCE_TYPE_NOT_FOUND   0xC000008A
 | 
|---|
| 1267 | #define STATUS_RESOURCE_NAME_NOT_FOUND   0xC000008B
 | 
|---|
| 1268 | #define STATUS_ARRAY_BOUNDS_EXCEEDED     0xC000008C
 | 
|---|
| 1269 | #define STATUS_FLOAT_DENORMAL_OPERAND    0xC000008D
 | 
|---|
| 1270 | #define STATUS_FLOAT_DIVIDE_BY_ZERO      0xC000008E
 | 
|---|
| 1271 | #define STATUS_FLOAT_INEXACT_RESULT      0xC000008F
 | 
|---|
| 1272 | #define STATUS_FLOAT_INVALID_OPERATION   0xC0000090
 | 
|---|
| 1273 | #define STATUS_FLOAT_OVERFLOW            0xC0000091
 | 
|---|
| 1274 | #define STATUS_FLOAT_STACK_CHECK         0xC0000092
 | 
|---|
| 1275 | #define STATUS_FLOAT_UNDERFLOW           0xC0000093
 | 
|---|
| 1276 | #define STATUS_INTEGER_DIVIDE_BY_ZERO    0xC0000094
 | 
|---|
| 1277 | #define STATUS_INTEGER_OVERFLOW          0xC0000095
 | 
|---|
| 1278 | #define STATUS_PRIVILEGED_INSTRUCTION    0xC0000096
 | 
|---|
| 1279 | #define STATUS_TOO_MANY_PAGING_FILES     0xC0000097
 | 
|---|
| 1280 | #define STATUS_FILE_INVALID              0xC0000098
 | 
|---|
| 1281 | #define STATUS_ALLOTTED_SPACE_EXCEEDED   0xC0000099
 | 
|---|
| 1282 | #define STATUS_INSUFFICIENT_RESOURCES    0xC000009A
 | 
|---|
| 1283 | #define STATUS_DFS_EXIT_PATH_FOUND       0xC000009B
 | 
|---|
| 1284 | #define STATUS_DEVICE_DATA_ERROR         0xC000009C
 | 
|---|
| 1285 | #define STATUS_DEVICE_NOT_CONNECTED      0xC000009D
 | 
|---|
| 1286 | #define STATUS_DEVICE_POWER_FAILURE      0xC000009E
 | 
|---|
| 1287 | #define STATUS_FREE_VM_NOT_AT_BASE       0xC000009F
 | 
|---|
| 1288 | #define STATUS_MEMORY_NOT_ALLOCATED      0xC00000A0
 | 
|---|
| 1289 | #define STATUS_WORKING_SET_QUOTA         0xC00000A1
 | 
|---|
| 1290 | #define STATUS_MEDIA_WRITE_PROTECTED     0xC00000A2
 | 
|---|
| 1291 | #define STATUS_DEVICE_NOT_READY          0xC00000A3
 | 
|---|
| 1292 | #define STATUS_INVALID_GROUP_ATTRIBUTES  0xC00000A4
 | 
|---|
| 1293 | #define STATUS_BAD_IMPERSONATION_LEVEL   0xC00000A5
 | 
|---|
| 1294 | #define STATUS_CANT_OPEN_ANONYMOUS       0xC00000A6
 | 
|---|
| 1295 | #define STATUS_BAD_VALIDATION_CLASS      0xC00000A7
 | 
|---|
| 1296 | #define STATUS_BAD_TOKEN_TYPE            0xC00000A8
 | 
|---|
| 1297 | #define STATUS_BAD_MASTER_BOOT_RECORD    0xC00000A9
 | 
|---|
| 1298 | #define STATUS_INSTRUCTION_MISALIGNMENT  0xC00000AA
 | 
|---|
| 1299 | #define STATUS_INSTANCE_NOT_AVAILABLE    0xC00000AB
 | 
|---|
| 1300 | #define STATUS_PIPE_NOT_AVAILABLE        0xC00000AC
 | 
|---|
| 1301 | #define STATUS_INVALID_PIPE_STATE        0xC00000AD
 | 
|---|
| 1302 | #define STATUS_PIPE_BUSY                 0xC00000AE
 | 
|---|
| 1303 | #define STATUS_ILLEGAL_FUNCTION          0xC00000AF
 | 
|---|
| 1304 | #define STATUS_PIPE_DISCONNECTED         0xC00000B0
 | 
|---|
| 1305 | #define STATUS_PIPE_CLOSING              0xC00000B1
 | 
|---|
| 1306 | #define STATUS_PIPE_CONNECTED            0xC00000B2
 | 
|---|
| 1307 | #define STATUS_PIPE_LISTENING            0xC00000B3
 | 
|---|
| 1308 | #define STATUS_INVALID_READ_MODE         0xC00000B4
 | 
|---|
| 1309 | #define STATUS_IO_TIMEOUT                0xC00000B5
 | 
|---|
| 1310 | #define STATUS_FILE_FORCED_CLOSED        0xC00000B6
 | 
|---|
| 1311 | #define STATUS_PROFILING_NOT_STARTED     0xC00000B7
 | 
|---|
| 1312 | #define STATUS_PROFILING_NOT_STOPPED     0xC00000B8
 | 
|---|
| 1313 | #define STATUS_COULD_NOT_INTERPRET       0xC00000B9
 | 
|---|
| 1314 | #define STATUS_FILE_IS_A_DIRECTORY       0xC00000BA
 | 
|---|
| 1315 | #define STATUS_NOT_SUPPORTED             0xC00000BB
 | 
|---|
| 1316 | #define STATUS_REMOTE_NOT_LISTENING      0xC00000BC
 | 
|---|
| 1317 | #define STATUS_DUPLICATE_NAME            0xC00000BD
 | 
|---|
| 1318 | #define STATUS_BAD_NETWORK_PATH          0xC00000BE
 | 
|---|
| 1319 | #define STATUS_NETWORK_BUSY              0xC00000BF
 | 
|---|
| 1320 | #define STATUS_DEVICE_DOES_NOT_EXIST     0xC00000C0
 | 
|---|
| 1321 | #define STATUS_TOO_MANY_COMMANDS         0xC00000C1
 | 
|---|
| 1322 | #define STATUS_ADAPTER_HARDWARE_ERROR    0xC00000C2
 | 
|---|
| 1323 | #define STATUS_INVALID_NETWORK_RESPONSE  0xC00000C3
 | 
|---|
| 1324 | #define STATUS_UNEXPECTED_NETWORK_ERROR  0xC00000C4
 | 
|---|
| 1325 | #define STATUS_BAD_REMOTE_ADAPTER        0xC00000C5
 | 
|---|
| 1326 | #define STATUS_PRINT_QUEUE_FULL          0xC00000C6
 | 
|---|
| 1327 | #define STATUS_NO_SPOOL_SPACE            0xC00000C7
 | 
|---|
| 1328 | #define STATUS_PRINT_CANCELLED           0xC00000C8
 | 
|---|
| 1329 | #define STATUS_NETWORK_NAME_DELETED      0xC00000C9
 | 
|---|
| 1330 | #define STATUS_NETWORK_ACCESS_DENIED     0xC00000CA
 | 
|---|
| 1331 | #define STATUS_BAD_DEVICE_TYPE           0xC00000CB
 | 
|---|
| 1332 | #define STATUS_BAD_NETWORK_NAME          0xC00000CC
 | 
|---|
| 1333 | #define STATUS_TOO_MANY_NAMES            0xC00000CD
 | 
|---|
| 1334 | #define STATUS_TOO_MANY_SESSIONS         0xC00000CE
 | 
|---|
| 1335 | #define STATUS_SHARING_PAUSED            0xC00000CF
 | 
|---|
| 1336 | #define STATUS_REQUEST_NOT_ACCEPTED      0xC00000D0
 | 
|---|
| 1337 | #define STATUS_REDIRECTOR_PAUSED         0xC00000D1
 | 
|---|
| 1338 | #define STATUS_NET_WRITE_FAULT           0xC00000D2
 | 
|---|
| 1339 | #define STATUS_PROFILING_AT_LIMIT        0xC00000D3
 | 
|---|
| 1340 | #define STATUS_NOT_SAME_DEVICE           0xC00000D4
 | 
|---|
| 1341 | #define STATUS_FILE_RENAMED              0xC00000D5
 | 
|---|
| 1342 | #define STATUS_VIRTUAL_CIRCUIT_CLOSED    0xC00000D6
 | 
|---|
| 1343 | #define STATUS_NO_SECURITY_ON_OBJECT     0xC00000D7
 | 
|---|
| 1344 | #define STATUS_CANT_WAIT                 0xC00000D8
 | 
|---|
| 1345 | #define STATUS_PIPE_EMPTY                0xC00000D9
 | 
|---|
| 1346 | #define STATUS_CANT_ACCESS_DOMAIN_INFO   0xC00000DA
 | 
|---|
| 1347 | #define STATUS_CANT_TERMINATE_SELF       0xC00000DB
 | 
|---|
| 1348 | #define STATUS_INVALID_SERVER_STATE      0xC00000DC
 | 
|---|
| 1349 | #define STATUS_INVALID_DOMAIN_STATE      0xC00000DD
 | 
|---|
| 1350 | #define STATUS_INVALID_DOMAIN_ROLE       0xC00000DE
 | 
|---|
| 1351 | #define STATUS_NO_SUCH_DOMAIN            0xC00000DF
 | 
|---|
| 1352 | #define STATUS_DOMAIN_EXISTS             0xC00000E0
 | 
|---|
| 1353 | #define STATUS_DOMAIN_LIMIT_EXCEEDED     0xC00000E1
 | 
|---|
| 1354 | #define STATUS_OPLOCK_NOT_GRANTED        0xC00000E2
 | 
|---|
| 1355 | #define STATUS_INVALID_OPLOCK_PROTOCOL   0xC00000E3
 | 
|---|
| 1356 | #define STATUS_INTERNAL_DB_CORRUPTION    0xC00000E4
 | 
|---|
| 1357 | #define STATUS_INTERNAL_ERROR            0xC00000E5
 | 
|---|
| 1358 | #define STATUS_GENERIC_NOT_MAPPED        0xC00000E6
 | 
|---|
| 1359 | #define STATUS_BAD_DESCRIPTOR_FORMAT     0xC00000E7
 | 
|---|
| 1360 | #define STATUS_INVALID_USER_BUFFER       0xC00000E8
 | 
|---|
| 1361 | #define STATUS_UNEXPECTED_IO_ERROR       0xC00000E9
 | 
|---|
| 1362 | #define STATUS_UNEXPECTED_MM_CREATE_ERR  0xC00000EA
 | 
|---|
| 1363 | #define STATUS_UNEXPECTED_MM_MAP_ERROR   0xC00000EB
 | 
|---|
| 1364 | #define STATUS_UNEXPECTED_MM_EXTEND_ERR  0xC00000EC
 | 
|---|
| 1365 | #define STATUS_NOT_LOGON_PROCESS         0xC00000ED
 | 
|---|
| 1366 | #define STATUS_LOGON_SESSION_EXISTS      0xC00000EE
 | 
|---|
| 1367 | #define STATUS_INVALID_PARAMETER_1       0xC00000EF
 | 
|---|
| 1368 | #define STATUS_INVALID_PARAMETER_2       0xC00000F0
 | 
|---|
| 1369 | #define STATUS_INVALID_PARAMETER_3       0xC00000F1
 | 
|---|
| 1370 | #define STATUS_INVALID_PARAMETER_4       0xC00000F2
 | 
|---|
| 1371 | #define STATUS_INVALID_PARAMETER_5       0xC00000F3
 | 
|---|
| 1372 | #define STATUS_INVALID_PARAMETER_6       0xC00000F4
 | 
|---|
| 1373 | #define STATUS_INVALID_PARAMETER_7       0xC00000F5
 | 
|---|
| 1374 | #define STATUS_INVALID_PARAMETER_8       0xC00000F6
 | 
|---|
| 1375 | #define STATUS_INVALID_PARAMETER_9       0xC00000F7
 | 
|---|
| 1376 | #define STATUS_INVALID_PARAMETER_10      0xC00000F8
 | 
|---|
| 1377 | #define STATUS_INVALID_PARAMETER_11      0xC00000F9
 | 
|---|
| 1378 | #define STATUS_INVALID_PARAMETER_12      0xC00000FA
 | 
|---|
| 1379 | #define STATUS_REDIRECTOR_NOT_STARTED    0xC00000FB
 | 
|---|
| 1380 | #define STATUS_REDIRECTOR_STARTED        0xC00000FC
 | 
|---|
| 1381 | #define STATUS_STACK_OVERFLOW            0xC00000FD
 | 
|---|
| 1382 | #define STATUS_BAD_FUNCTION_TABLE        0xC00000FF
 | 
|---|
| 1383 | #define STATUS_VARIABLE_NOT_FOUND        0xC0000100
 | 
|---|
| 1384 | #define STATUS_DIRECTORY_NOT_EMPTY       0xC0000101
 | 
|---|
| 1385 | #define STATUS_FILE_CORRUPT_ERROR        0xC0000102
 | 
|---|
| 1386 | #define STATUS_NOT_A_DIRECTORY           0xC0000103
 | 
|---|
| 1387 | #define STATUS_BAD_LOGON_SESSION_STATE   0xC0000104
 | 
|---|
| 1388 | #define STATUS_LOGON_SESSION_COLLISION   0xC0000105
 | 
|---|
| 1389 | #define STATUS_NAME_TOO_LONG             0xC0000106
 | 
|---|
| 1390 | #define STATUS_FILES_OPEN                0xC0000107
 | 
|---|
| 1391 | #define STATUS_CONNECTION_IN_USE         0xC0000108
 | 
|---|
| 1392 | #define STATUS_MESSAGE_NOT_FOUND         0xC0000109
 | 
|---|
| 1393 | #define STATUS_PROCESS_IS_TERMINATING    0xC000010A
 | 
|---|
| 1394 | #define STATUS_INVALID_LOGON_TYPE        0xC000010B
 | 
|---|
| 1395 | #define STATUS_NO_GUID_TRANSLATION       0xC000010C
 | 
|---|
| 1396 | #define STATUS_CANNOT_IMPERSONATE        0xC000010D
 | 
|---|
| 1397 | #define STATUS_IMAGE_ALREADY_LOADED      0xC000010E
 | 
|---|
| 1398 | #define STATUS_ABIOS_NOT_PRESENT         0xC000010F
 | 
|---|
| 1399 | #define STATUS_ABIOS_LID_NOT_EXIST       0xC0000110
 | 
|---|
| 1400 | #define STATUS_ABIOS_LID_ALREADY_OWNED   0xC0000111
 | 
|---|
| 1401 | #define STATUS_ABIOS_NOT_LID_OWNER       0xC0000112
 | 
|---|
| 1402 | #define STATUS_ABIOS_INVALID_COMMAND     0xC0000113
 | 
|---|
| 1403 | #define STATUS_ABIOS_INVALID_LID         0xC0000114
 | 
|---|
| 1404 | #define STATUS_ABIOS_SELECTOR_NOT_AVAILABLE 0xC0000115
 | 
|---|
| 1405 | #define STATUS_ABIOS_INVALID_SELECTOR    0xC0000116
 | 
|---|
| 1406 | #define STATUS_NO_LDT                    0xC0000117
 | 
|---|
| 1407 | #define STATUS_INVALID_LDT_SIZE          0xC0000118
 | 
|---|
| 1408 | #define STATUS_INVALID_LDT_OFFSET        0xC0000119
 | 
|---|
| 1409 | #define STATUS_INVALID_LDT_DESCRIPTOR    0xC000011A
 | 
|---|
| 1410 | #define STATUS_INVALID_IMAGE_NE_FORMAT   0xC000011B
 | 
|---|
| 1411 | #define STATUS_RXACT_INVALID_STATE       0xC000011C
 | 
|---|
| 1412 | #define STATUS_RXACT_COMMIT_FAILURE      0xC000011D
 | 
|---|
| 1413 | #define STATUS_MAPPED_FILE_SIZE_ZERO     0xC000011E
 | 
|---|
| 1414 | #define STATUS_TOO_MANY_OPENED_FILES     0xC000011F
 | 
|---|
| 1415 | #define STATUS_CANCELLED                 0xC0000120
 | 
|---|
| 1416 | #define STATUS_CANNOT_DELETE             0xC0000121
 | 
|---|
| 1417 | #define STATUS_INVALID_COMPUTER_NAME     0xC0000122
 | 
|---|
| 1418 | #define STATUS_FILE_DELETED              0xC0000123
 | 
|---|
| 1419 | #define STATUS_SPECIAL_ACCOUNT           0xC0000124
 | 
|---|
| 1420 | #define STATUS_SPECIAL_GROUP             0xC0000125
 | 
|---|
| 1421 | #define STATUS_SPECIAL_USER              0xC0000126
 | 
|---|
| 1422 | #define STATUS_MEMBERS_PRIMARY_GROUP     0xC0000127
 | 
|---|
| 1423 | #define STATUS_FILE_CLOSED               0xC0000128
 | 
|---|
| 1424 | #define STATUS_TOO_MANY_THREADS          0xC0000129
 | 
|---|
| 1425 | #define STATUS_THREAD_NOT_IN_PROCESS     0xC000012A
 | 
|---|
| 1426 | #define STATUS_TOKEN_ALREADY_IN_USE      0xC000012B
 | 
|---|
| 1427 | #define STATUS_PAGEFILE_QUOTA_EXCEEDED   0xC000012C
 | 
|---|
| 1428 | #define STATUS_COMMITMENT_LIMIT          0xC000012D
 | 
|---|
| 1429 | #define STATUS_INVALID_IMAGE_LE_FORMAT   0xC000012E
 | 
|---|
| 1430 | #define STATUS_INVALID_IMAGE_NOT_MZ      0xC000012F
 | 
|---|
| 1431 | #define STATUS_INVALID_IMAGE_PROTECT     0xC0000130
 | 
|---|
| 1432 | #define STATUS_INVALID_IMAGE_WIN_16      0xC0000131
 | 
|---|
| 1433 | #define STATUS_LOGON_SERVER_CONFLICT     0xC0000132
 | 
|---|
| 1434 | #define STATUS_TIME_DIFFERENCE_AT_DC     0xC0000133
 | 
|---|
| 1435 | #define STATUS_SYNCHRONIZATION_REQUIRED  0xC0000134
 | 
|---|
| 1436 | #define STATUS_DLL_NOT_FOUND             0xC0000135
 | 
|---|
| 1437 | #define STATUS_OPEN_FAILED               0xC0000136
 | 
|---|
| 1438 | #define STATUS_IO_PRIVILEGE_FAILED       0xC0000137
 | 
|---|
| 1439 | #define STATUS_ORDINAL_NOT_FOUND         0xC0000138
 | 
|---|
| 1440 | #define STATUS_ENTRYPOINT_NOT_FOUND      0xC0000139
 | 
|---|
| 1441 | #define STATUS_CONTROL_C_EXIT            0xC000013A
 | 
|---|
| 1442 | #define STATUS_LOCAL_DISCONNECT          0xC000013B
 | 
|---|
| 1443 | #define STATUS_REMOTE_DISCONNECT         0xC000013C
 | 
|---|
| 1444 | #define STATUS_REMOTE_RESOURCES          0xC000013D
 | 
|---|
| 1445 | #define STATUS_LINK_FAILED               0xC000013E
 | 
|---|
| 1446 | #define STATUS_LINK_TIMEOUT              0xC000013F
 | 
|---|
| 1447 | #define STATUS_INVALID_CONNECTION        0xC0000140
 | 
|---|
| 1448 | #define STATUS_INVALID_ADDRESS           0xC0000141
 | 
|---|
| 1449 | #define STATUS_DLL_INIT_FAILED           0xC0000142
 | 
|---|
| 1450 | #define STATUS_MISSING_SYSTEMFILE        0xC0000143
 | 
|---|
| 1451 | #define STATUS_UNHANDLED_EXCEPTION       0xC0000144
 | 
|---|
| 1452 | #define STATUS_APP_INIT_FAILURE          0xC0000145
 | 
|---|
| 1453 | #define STATUS_PAGEFILE_CREATE_FAILED    0xC0000146
 | 
|---|
| 1454 | #define STATUS_NO_PAGEFILE               0xC0000147
 | 
|---|
| 1455 | #define STATUS_INVALID_LEVEL             0xC0000148
 | 
|---|
| 1456 | #define STATUS_WRONG_PASSWORD_CORE       0xC0000149
 | 
|---|
| 1457 | #define STATUS_ILLEGAL_FLOAT_CONTEXT     0xC000014A
 | 
|---|
| 1458 | #define STATUS_PIPE_BROKEN               0xC000014B
 | 
|---|
| 1459 | #define STATUS_REGISTRY_CORRUPT          0xC000014C
 | 
|---|
| 1460 | #define STATUS_REGISTRY_IO_FAILED        0xC000014D
 | 
|---|
| 1461 | #define STATUS_NO_EVENT_PAIR             0xC000014E
 | 
|---|
| 1462 | #define STATUS_UNRECOGNIZED_VOLUME       0xC000014F
 | 
|---|
| 1463 | #define STATUS_SERIAL_NO_DEVICE_INITED   0xC0000150
 | 
|---|
| 1464 | #define STATUS_NO_SUCH_ALIAS             0xC0000151
 | 
|---|
| 1465 | #define STATUS_MEMBER_NOT_IN_ALIAS       0xC0000152
 | 
|---|
| 1466 | #define STATUS_MEMBER_IN_ALIAS           0xC0000153
 | 
|---|
| 1467 | #define STATUS_ALIAS_EXISTS              0xC0000154
 | 
|---|
| 1468 | #define STATUS_LOGON_NOT_GRANTED         0xC0000155
 | 
|---|
| 1469 | #define STATUS_TOO_MANY_SECRETS          0xC0000156
 | 
|---|
| 1470 | #define STATUS_SECRET_TOO_LONG           0xC0000157
 | 
|---|
| 1471 | #define STATUS_INTERNAL_DB_ERROR         0xC0000158
 | 
|---|
| 1472 | #define STATUS_FULLSCREEN_MODE           0xC0000159
 | 
|---|
| 1473 | #define STATUS_TOO_MANY_CONTEXT_IDS      0xC000015A
 | 
|---|
| 1474 | #define STATUS_LOGON_TYPE_NOT_GRANTED    0xC000015B
 | 
|---|
| 1475 | #define STATUS_NOT_REGISTRY_FILE         0xC000015C
 | 
|---|
| 1476 | #define STATUS_NT_CROSS_ENCRYPTION_REQUIRED 0xC000015D
 | 
|---|
| 1477 | #define STATUS_DOMAIN_CTRLR_CONFIG_ERROR 0xC000015E
 | 
|---|
| 1478 | #define STATUS_FT_MISSING_MEMBER         0xC000015F
 | 
|---|
| 1479 | #define STATUS_ILL_FORMED_SERVICE_ENTRY  0xC0000160
 | 
|---|
| 1480 | #define STATUS_ILLEGAL_CHARACTER         0xC0000161
 | 
|---|
| 1481 | #define STATUS_UNMAPPABLE_CHARACTER      0xC0000162
 | 
|---|
| 1482 | #define STATUS_UNDEFINED_CHARACTER       0xC0000163
 | 
|---|
| 1483 | #define STATUS_FLOPPY_VOLUME             0xC0000164
 | 
|---|
| 1484 | #define STATUS_FLOPPY_ID_MARK_NOT_FOUND  0xC0000165
 | 
|---|
| 1485 | #define STATUS_FLOPPY_WRONG_CYLINDER     0xC0000166
 | 
|---|
| 1486 | #define STATUS_FLOPPY_UNKNOWN_ERROR      0xC0000167
 | 
|---|
| 1487 | #define STATUS_FLOPPY_BAD_REGISTERS      0xC0000168
 | 
|---|
| 1488 | #define STATUS_DISK_RECALIBRATE_FAILED   0xC0000169
 | 
|---|
| 1489 | #define STATUS_DISK_OPERATION_FAILED     0xC000016A
 | 
|---|
| 1490 | #define STATUS_DISK_RESET_FAILED         0xC000016B
 | 
|---|
| 1491 | #define STATUS_SHARED_IRQ_BUSY           0xC000016C
 | 
|---|
| 1492 | #define STATUS_FT_ORPHANING              0xC000016D
 | 
|---|
| 1493 | #define STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT 0xC000016E
 | 
|---|
| 1494 | 
 | 
|---|
| 1495 | #define STATUS_PARTITION_FAILURE         0xC0000172
 | 
|---|
| 1496 | #define STATUS_INVALID_BLOCK_LENGTH      0xC0000173
 | 
|---|
| 1497 | #define STATUS_DEVICE_NOT_PARTITIONED    0xC0000174
 | 
|---|
| 1498 | #define STATUS_UNABLE_TO_LOCK_MEDIA      0xC0000175
 | 
|---|
| 1499 | #define STATUS_UNABLE_TO_UNLOAD_MEDIA    0xC0000176
 | 
|---|
| 1500 | #define STATUS_EOM_OVERFLOW              0xC0000177
 | 
|---|
| 1501 | #define STATUS_NO_MEDIA                  0xC0000178
 | 
|---|
| 1502 | #define STATUS_NO_SUCH_MEMBER            0xC000017A
 | 
|---|
| 1503 | #define STATUS_INVALID_MEMBER            0xC000017B
 | 
|---|
| 1504 | #define STATUS_KEY_DELETED               0xC000017C
 | 
|---|
| 1505 | #define STATUS_NO_LOG_SPACE              0xC000017D
 | 
|---|
| 1506 | #define STATUS_TOO_MANY_SIDS             0xC000017E
 | 
|---|
| 1507 | #define STATUS_LM_CROSS_ENCRYPTION_REQUIRED 0xC000017F
 | 
|---|
| 1508 | #define STATUS_KEY_HAS_CHILDREN          0xC0000180
 | 
|---|
| 1509 | #define STATUS_CHILD_MUST_BE_VOLATILE    0xC0000181
 | 
|---|
| 1510 | #define STATUS_DEVICE_CONFIGURATION_ERROR 0xC0000182
 | 
|---|
| 1511 | #define STATUS_DRIVER_INTERNAL_ERROR     0xC0000183
 | 
|---|
| 1512 | #define STATUS_INVALID_DEVICE_STATE      0xC0000184
 | 
|---|
| 1513 | #define STATUS_IO_DEVICE_ERROR           0xC0000185
 | 
|---|
| 1514 | #define STATUS_DEVICE_PROTOCOL_ERROR     0xC0000186
 | 
|---|
| 1515 | #define STATUS_BACKUP_CONTROLLER         0xC0000187
 | 
|---|
| 1516 | #define STATUS_LOG_FILE_FULL             0xC0000188
 | 
|---|
| 1517 | #define STATUS_TOO_LATE                  0xC0000189
 | 
|---|
| 1518 | #define STATUS_NO_TRUST_LSA_SECRET       0xC000018A
 | 
|---|
| 1519 | #define STATUS_NO_TRUST_SAM_ACCOUNT      0xC000018B
 | 
|---|
| 1520 | #define STATUS_TRUSTED_DOMAIN_FAILURE    0xC000018C
 | 
|---|
| 1521 | #define STATUS_TRUSTED_RELATIONSHIP_FAILURE 0xC000018D
 | 
|---|
| 1522 | #define STATUS_EVENTLOG_FILE_CORRUPT     0xC000018E
 | 
|---|
| 1523 | #define STATUS_EVENTLOG_CANT_START       0xC000018F
 | 
|---|
| 1524 | #define STATUS_TRUST_FAILURE             0xC0000190
 | 
|---|
| 1525 | #define STATUS_MUTANT_LIMIT_EXCEEDED     0xC0000191
 | 
|---|
| 1526 | #define STATUS_NETLOGON_NOT_STARTED      0xC0000192
 | 
|---|
| 1527 | #define STATUS_ACCOUNT_EXPIRED           0xC0000193
 | 
|---|
| 1528 | #define STATUS_POSSIBLE_DEADLOCK         0xC0000194
 | 
|---|
| 1529 | #define STATUS_NETWORK_CREDENTIAL_CONFLICT 0xC0000195
 | 
|---|
| 1530 | #define STATUS_REMOTE_SESSION_LIMIT      0xC0000196
 | 
|---|
| 1531 | #define STATUS_EVENTLOG_FILE_CHANGED     0xC0000197
 | 
|---|
| 1532 | #define STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT 0xC0000198
 | 
|---|
| 1533 | #define STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT 0xC0000199
 | 
|---|
| 1534 | #define STATUS_NOLOGON_SERVER_TRUST_ACCOUNT 0xC000019A
 | 
|---|
| 1535 | #define STATUS_DOMAIN_TRUST_INCONSISTENT 0xC000019B
 | 
|---|
| 1536 | #define STATUS_FS_DRIVER_REQUIRED        0xC000019C
 | 
|---|
| 1537 | 
 | 
|---|
| 1538 | #define STATUS_NO_USER_SESSION_KEY       0xC0000202
 | 
|---|
| 1539 | #define STATUS_USER_SESSION_DELETED      0xC0000203
 | 
|---|
| 1540 | #define STATUS_RESOURCE_LANG_NOT_FOUND   0xC0000204
 | 
|---|
| 1541 | #define STATUS_INSUFF_SERVER_RESOURCES   0xC0000205
 | 
|---|
| 1542 | #define STATUS_INVALID_BUFFER_SIZE       0xC0000206
 | 
|---|
| 1543 | #define STATUS_INVALID_ADDRESS_COMPONENT 0xC0000207
 | 
|---|
| 1544 | #define STATUS_INVALID_ADDRESS_WILDCARD  0xC0000208
 | 
|---|
| 1545 | #define STATUS_TOO_MANY_ADDRESSES        0xC0000209
 | 
|---|
| 1546 | #define STATUS_ADDRESS_ALREADY_EXISTS    0xC000020A
 | 
|---|
| 1547 | #define STATUS_ADDRESS_CLOSED            0xC000020B
 | 
|---|
| 1548 | #define STATUS_CONNECTION_DISCONNECTED   0xC000020C
 | 
|---|
| 1549 | #define STATUS_CONNECTION_RESET          0xC000020D
 | 
|---|
| 1550 | #define STATUS_TOO_MANY_NODES            0xC000020E
 | 
|---|
| 1551 | #define STATUS_TRANSACTION_ABORTED       0xC000020F
 | 
|---|
| 1552 | #define STATUS_TRANSACTION_TIMED_OUT     0xC0000210
 | 
|---|
| 1553 | #define STATUS_TRANSACTION_NO_RELEASE    0xC0000211
 | 
|---|
| 1554 | #define STATUS_TRANSACTION_NO_MATCH      0xC0000212
 | 
|---|
| 1555 | #define STATUS_TRANSACTION_RESPONDED     0xC0000213
 | 
|---|
| 1556 | #define STATUS_TRANSACTION_INVALID_ID    0xC0000214
 | 
|---|
| 1557 | #define STATUS_TRANSACTION_INVALID_TYPE  0xC0000215
 | 
|---|
| 1558 | #define STATUS_NOT_SERVER_SESSION        0xC0000216
 | 
|---|
| 1559 | #define STATUS_NOT_CLIENT_SESSION        0xC0000217
 | 
|---|
| 1560 | #define STATUS_CANNOT_LOAD_REGISTRY_FILE 0xC0000218
 | 
|---|
| 1561 | #define STATUS_DEBUG_ATTACH_FAILED       0xC0000219
 | 
|---|
| 1562 | #define STATUS_SYSTEM_PROCESS_TERMINATED 0xC000021A
 | 
|---|
| 1563 | #define STATUS_DATA_NOT_ACCEPTED         0xC000021B
 | 
|---|
| 1564 | #define STATUS_NO_BROWSER_SERVERS_FOUND  0xC000021C
 | 
|---|
| 1565 | #define STATUS_VDM_HARD_ERROR            0xC000021D
 | 
|---|
| 1566 | #define STATUS_DRIVER_CANCEL_TIMEOUT     0xC000021E
 | 
|---|
| 1567 | #define STATUS_REPLY_MESSAGE_MISMATCH    0xC000021F
 | 
|---|
| 1568 | #define STATUS_MAPPED_ALIGNMENT          0xC0000220
 | 
|---|
| 1569 | #define STATUS_IMAGE_CHECKSUM_MISMATCH   0xC0000221
 | 
|---|
| 1570 | #define STATUS_LOST_WRITEBEHIND_DATA     0xC0000222
 | 
|---|
| 1571 | #define STATUS_CLIENT_SERVER_PARAMETERS_INVALID 0xC0000223
 | 
|---|
| 1572 | #define STATUS_PASSWORD_MUST_CHANGE      0xC0000224
 | 
|---|
| 1573 | #define STATUS_NOT_FOUND                 0xC0000225
 | 
|---|
| 1574 | #define STATUS_NOT_TINY_STREAM           0xC0000226
 | 
|---|
| 1575 | #define STATUS_RECOVERY_FAILURE          0xC0000227
 | 
|---|
| 1576 | #define STATUS_STACK_OVERFLOW_READ       0xC0000228
 | 
|---|
| 1577 | #define STATUS_FAIL_CHECK                0xC0000229
 | 
|---|
| 1578 | #define STATUS_DUPLICATE_OBJECTID        0xC000022A
 | 
|---|
| 1579 | #define STATUS_OBJECTID_EXISTS           0xC000022B
 | 
|---|
| 1580 | #define STATUS_CONVERT_TO_LARGE          0xC000022C
 | 
|---|
| 1581 | #define STATUS_RETRY                     0xC000022D
 | 
|---|
| 1582 | #define STATUS_FOUND_OUT_OF_SCOPE        0xC000022E
 | 
|---|
| 1583 | #define STATUS_ALLOCATE_BUCKET           0xC000022F
 | 
|---|
| 1584 | #define STATUS_PROPSET_NOT_FOUND         0xC0000230
 | 
|---|
| 1585 | #define STATUS_MARSHALL_OVERFLOW         0xC0000231
 | 
|---|
| 1586 | #define STATUS_INVALID_VARIANT           0xC0000232
 | 
|---|
| 1587 | #define STATUS_DOMAIN_CONTROLLER_NOT_FOUND 0xC0000233
 | 
|---|
| 1588 | #define STATUS_ACCOUNT_LOCKED_OUT        0xC0000234
 | 
|---|
| 1589 | #define STATUS_HANDLE_NOT_CLOSABLE       0xC0000235
 | 
|---|
| 1590 | #define STATUS_CONNECTION_REFUSED        0xC0000236
 | 
|---|
| 1591 | #define STATUS_GRACEFUL_DISCONNECT       0xC0000237
 | 
|---|
| 1592 | #define STATUS_ADDRESS_ALREADY_ASSOCIATED 0xC0000238
 | 
|---|
| 1593 | #define STATUS_ADDRESS_NOT_ASSOCIATED    0xC0000239
 | 
|---|
| 1594 | #define STATUS_CONNECTION_INVALID        0xC000023A
 | 
|---|
| 1595 | #define STATUS_CONNECTION_ACTIVE         0xC000023B
 | 
|---|
| 1596 | #define STATUS_NETWORK_UNREACHABLE       0xC000023C
 | 
|---|
| 1597 | #define STATUS_HOST_UNREACHABLE          0xC000023D
 | 
|---|
| 1598 | #define STATUS_PROTOCOL_UNREACHABLE      0xC000023E
 | 
|---|
| 1599 | #define STATUS_PORT_UNREACHABLE          0xC000023F
 | 
|---|
| 1600 | #define STATUS_REQUEST_ABORTED           0xC0000240
 | 
|---|
| 1601 | #define STATUS_CONNECTION_ABORTED        0xC0000241
 | 
|---|
| 1602 | #define STATUS_BAD_COMPRESSION_BUFFER    0xC0000242
 | 
|---|
| 1603 | #define STATUS_USER_MAPPED_FILE          0xC0000243
 | 
|---|
| 1604 | #define STATUS_AUDIT_FAILED              0xC0000244
 | 
|---|
| 1605 | #define STATUS_TIMER_RESOLUTION_NOT_SET  0xC0000245
 | 
|---|
| 1606 | #define STATUS_CONNECTION_COUNT_LIMIT    0xC0000246
 | 
|---|
| 1607 | #define STATUS_LOGIN_TIME_RESTRICTION    0xC0000247
 | 
|---|
| 1608 | #define STATUS_LOGIN_WKSTA_RESTRICTION   0xC0000248
 | 
|---|
| 1609 | #define STATUS_IMAGE_MP_UP_MISMATCH      0xC0000249
 | 
|---|
| 1610 | #define STATUS_INSUFFICIENT_LOGON_INFO   0xC0000250
 | 
|---|
| 1611 | #define STATUS_BAD_DLL_ENTRYPOINT        0xC0000251
 | 
|---|
| 1612 | #define STATUS_BAD_SERVICE_ENTRYPOINT    0xC0000252
 | 
|---|
| 1613 | #define STATUS_LPC_REPLY_LOST            0xC0000253
 | 
|---|
| 1614 | #define STATUS_IP_ADDRESS_CONFLICT1      0xC0000254
 | 
|---|
| 1615 | #define STATUS_IP_ADDRESS_CONFLICT2      0xC0000255
 | 
|---|
| 1616 | #define STATUS_REGISTRY_QUOTA_LIMIT      0xC0000256
 | 
|---|
| 1617 | #define STATUS_PATH_NOT_COVERED          0xC0000257
 | 
|---|
| 1618 | #define STATUS_NO_CALLBACK_ACTIVE        0xC0000258
 | 
|---|
| 1619 | #define STATUS_LICENSE_QUOTA_EXCEEDED    0xC0000259
 | 
|---|
| 1620 | #define STATUS_PWD_TOO_SHORT             0xC000025A
 | 
|---|
| 1621 | #define STATUS_PWD_TOO_RECENT            0xC000025B
 | 
|---|
| 1622 | #define STATUS_PWD_HISTORY_CONFLICT      0xC000025C
 | 
|---|
| 1623 | #define STATUS_PLUGPLAY_NO_DEVICE        0xC000025E
 | 
|---|
| 1624 | #define STATUS_UNSUPPORTED_COMPRESSION   0xC000025F
 | 
|---|
| 1625 | #define STATUS_INVALID_HW_PROFILE        0xC0000260
 | 
|---|
| 1626 | #define STATUS_INVALID_PLUGPLAY_DEVICE_PATH 0xC0000261
 | 
|---|
| 1627 | #define STATUS_DRIVER_ORDINAL_NOT_FOUND  0xC0000262
 | 
|---|
| 1628 | #define STATUS_DRIVER_ENTRYPOINT_NOT_FOUND 0xC0000263
 | 
|---|
| 1629 | #define STATUS_RESOURCE_NOT_OWNED        0xC0000264
 | 
|---|
| 1630 | #define STATUS_TOO_MANY_LINKS            0xC0000265
 | 
|---|
| 1631 | #define STATUS_QUOTA_LIST_INCONSISTENT   0xC0000266
 | 
|---|
| 1632 | #define STATUS_FILE_IS_OFFLINE           0xC0000267
 | 
|---|
| 1633 | #define STATUS_EVALUATION_EXPIRATION     0xC0000268
 | 
|---|
| 1634 | #define STATUS_ILLEGAL_DLL_RELOCATION    0xC0000269
 | 
|---|
| 1635 | #define STATUS_LICENSE_VIOLATION         0xC000026A
 | 
|---|
| 1636 | #define STATUS_DLL_INIT_FAILED_LOGOFF    0xC000026B
 | 
|---|
| 1637 | #define STATUS_DRIVER_UNABLE_TO_LOAD     0xC000026C
 | 
|---|
| 1638 | #define STATUS_DFS_UNAVAILABLE           0xC000026D
 | 
|---|
| 1639 | #define STATUS_VOLUME_DISMOUNTED         0xC000026E
 | 
|---|
| 1640 | #define STATUS_WX86_INTERNAL_ERROR       0xC000026F
 | 
|---|
| 1641 | #define STATUS_WX86_FLOAT_STACK_CHECK    0xC0000270
 | 
|---|
| 1642 | #define STATUS_WOW_ASSERTION             0xC0009898
 | 
|---|
| 1643 | #define RPC_NT_INVALID_STRING_BINDING    0xC0020001
 | 
|---|
| 1644 | #define RPC_NT_WRONG_KIND_OF_BINDING     0xC0020002
 | 
|---|
| 1645 | #define RPC_NT_INVALID_BINDING           0xC0020003
 | 
|---|
| 1646 | #define RPC_NT_PROTSEQ_NOT_SUPPORTED     0xC0020004
 | 
|---|
| 1647 | #define RPC_NT_INVALID_RPC_PROTSEQ       0xC0020005
 | 
|---|
| 1648 | #define RPC_NT_INVALID_STRING_UUID       0xC0020006
 | 
|---|
| 1649 | #define RPC_NT_INVALID_ENDPOINT_FORMAT   0xC0020007
 | 
|---|
| 1650 | #define RPC_NT_INVALID_NET_ADDR          0xC0020008
 | 
|---|
| 1651 | #define RPC_NT_NO_ENDPOINT_FOUND         0xC0020009
 | 
|---|
| 1652 | #define RPC_NT_INVALID_TIMEOUT           0xC002000A
 | 
|---|
| 1653 | #define RPC_NT_OBJECT_NOT_FOUND          0xC002000B
 | 
|---|
| 1654 | #define RPC_NT_ALREADY_REGISTERED        0xC002000C
 | 
|---|
| 1655 | #define RPC_NT_TYPE_ALREADY_REGISTERED   0xC002000D
 | 
|---|
| 1656 | #define RPC_NT_ALREADY_LISTENING         0xC002000E
 | 
|---|
| 1657 | #define RPC_NT_NO_PROTSEQS_REGISTERED    0xC002000F
 | 
|---|
| 1658 | #define RPC_NT_NOT_LISTENING             0xC0020010
 | 
|---|
| 1659 | #define RPC_NT_UNKNOWN_MGR_TYPE          0xC0020011
 | 
|---|
| 1660 | #define RPC_NT_UNKNOWN_IF                0xC0020012
 | 
|---|
| 1661 | #define RPC_NT_NO_BINDINGS               0xC0020013
 | 
|---|
| 1662 | #define RPC_NT_NO_PROTSEQS               0xC0020014
 | 
|---|
| 1663 | #define RPC_NT_CANT_CREATE_ENDPOINT      0xC0020015
 | 
|---|
| 1664 | #define RPC_NT_OUT_OF_RESOURCES          0xC0020016
 | 
|---|
| 1665 | #define RPC_NT_SERVER_UNAVAILABLE        0xC0020017
 | 
|---|
| 1666 | #define RPC_NT_SERVER_TOO_BUSY           0xC0020018
 | 
|---|
| 1667 | #define RPC_NT_INVALID_NETWORK_OPTIONS   0xC0020019
 | 
|---|
| 1668 | #define RPC_NT_NO_CALL_ACTIVE            0xC002001A
 | 
|---|
| 1669 | #define RPC_NT_CALL_FAILED               0xC002001B
 | 
|---|
| 1670 | #define RPC_NT_CALL_FAILED_DNE           0xC002001C
 | 
|---|
| 1671 | #define RPC_NT_PROTOCOL_ERROR            0xC002001D
 | 
|---|
| 1672 | #define RPC_NT_UNSUPPORTED_TRANS_SYN     0xC002001F
 | 
|---|
| 1673 | #define RPC_NT_UNSUPPORTED_TYPE          0xC0020021
 | 
|---|
| 1674 | #define RPC_NT_INVALID_TAG               0xC0020022
 | 
|---|
| 1675 | #define RPC_NT_INVALID_BOUND             0xC0020023
 | 
|---|
| 1676 | #define RPC_NT_NO_ENTRY_NAME             0xC0020024
 | 
|---|
| 1677 | #define RPC_NT_INVALID_NAME_SYNTAX       0xC0020025
 | 
|---|
| 1678 | #define RPC_NT_UNSUPPORTED_NAME_SYNTAX   0xC0020026
 | 
|---|
| 1679 | #define RPC_NT_UUID_NO_ADDRESS           0xC0020028
 | 
|---|
| 1680 | #define RPC_NT_DUPLICATE_ENDPOINT        0xC0020029
 | 
|---|
| 1681 | #define RPC_NT_UNKNOWN_AUTHN_TYPE        0xC002002A
 | 
|---|
| 1682 | #define RPC_NT_MAX_CALLS_TOO_SMALL       0xC002002B
 | 
|---|
| 1683 | #define RPC_NT_STRING_TOO_LONG           0xC002002C
 | 
|---|
| 1684 | #define RPC_NT_PROTSEQ_NOT_FOUND         0xC002002D
 | 
|---|
| 1685 | #define RPC_NT_PROCNUM_OUT_OF_RANGE      0xC002002E
 | 
|---|
| 1686 | #define RPC_NT_BINDING_HAS_NO_AUTH       0xC002002F
 | 
|---|
| 1687 | #define RPC_NT_UNKNOWN_AUTHN_SERVICE     0xC0020030
 | 
|---|
| 1688 | #define RPC_NT_UNKNOWN_AUTHN_LEVEL       0xC0020031
 | 
|---|
| 1689 | #define RPC_NT_INVALID_AUTH_IDENTITY     0xC0020032
 | 
|---|
| 1690 | #define RPC_NT_UNKNOWN_AUTHZ_SERVICE     0xC0020033
 | 
|---|
| 1691 | #define EPT_NT_INVALID_ENTRY             0xC0020034
 | 
|---|
| 1692 | #define EPT_NT_CANT_PERFORM_OP           0xC0020035
 | 
|---|
| 1693 | #define EPT_NT_NOT_REGISTERED            0xC0020036
 | 
|---|
| 1694 | #define RPC_NT_NOTHING_TO_EXPORT         0xC0020037
 | 
|---|
| 1695 | #define RPC_NT_INCOMPLETE_NAME           0xC0020038
 | 
|---|
| 1696 | #define RPC_NT_INVALID_VERS_OPTION       0xC0020039
 | 
|---|
| 1697 | #define RPC_NT_NO_MORE_MEMBERS           0xC002003A
 | 
|---|
| 1698 | #define RPC_NT_NOT_ALL_OBJS_UNEXPORTED   0xC002003B
 | 
|---|
| 1699 | #define RPC_NT_INTERFACE_NOT_FOUND       0xC002003C
 | 
|---|
| 1700 | #define RPC_NT_ENTRY_ALREADY_EXISTS      0xC002003D
 | 
|---|
| 1701 | #define RPC_NT_ENTRY_NOT_FOUND           0xC002003E
 | 
|---|
| 1702 | #define RPC_NT_NAME_SERVICE_UNAVAILABLE  0xC002003F
 | 
|---|
| 1703 | #define RPC_NT_INVALID_NAF_ID            0xC0020040
 | 
|---|
| 1704 | #define RPC_NT_CANNOT_SUPPORT            0xC0020041
 | 
|---|
| 1705 | #define RPC_NT_NO_CONTEXT_AVAILABLE      0xC0020042
 | 
|---|
| 1706 | #define RPC_NT_INTERNAL_ERROR            0xC0020043
 | 
|---|
| 1707 | #define RPC_NT_ZERO_DIVIDE               0xC0020044
 | 
|---|
| 1708 | #define RPC_NT_ADDRESS_ERROR             0xC0020045
 | 
|---|
| 1709 | #define RPC_NT_FP_DIV_ZERO               0xC0020046
 | 
|---|
| 1710 | #define RPC_NT_FP_UNDERFLOW              0xC0020047
 | 
|---|
| 1711 | #define RPC_NT_FP_OVERFLOW               0xC0020048
 | 
|---|
| 1712 | #define RPC_NT_NO_MORE_ENTRIES           0xC0030001
 | 
|---|
| 1713 | #define RPC_NT_SS_CHAR_TRANS_OPEN_FAIL   0xC0030002
 | 
|---|
| 1714 | #define RPC_NT_SS_CHAR_TRANS_SHORT_FILE  0xC0030003
 | 
|---|
| 1715 | #define RPC_NT_SS_IN_NULL_CONTEXT        0xC0030004
 | 
|---|
| 1716 | #define RPC_NT_SS_CONTEXT_MISMATCH       0xC0030005
 | 
|---|
| 1717 | #define RPC_NT_SS_CONTEXT_DAMAGED        0xC0030006
 | 
|---|
| 1718 | #define RPC_NT_SS_HANDLES_MISMATCH       0xC0030007
 | 
|---|
| 1719 | #define RPC_NT_SS_CANNOT_GET_CALL_HANDLE 0xC0030008
 | 
|---|
| 1720 | #define RPC_NT_NULL_REF_POINTER          0xC0030009
 | 
|---|
| 1721 | #define RPC_NT_ENUM_VALUE_OUT_OF_RANGE   0xC003000A
 | 
|---|
| 1722 | #define RPC_NT_BYTE_COUNT_TOO_SMALL      0xC003000B
 | 
|---|
| 1723 | #define RPC_NT_BAD_STUB_DATA             0xC003000C
 | 
|---|
| 1724 | #define RPC_NT_CALL_IN_PROGRESS          0xC0020049
 | 
|---|
| 1725 | #define RPC_NT_NO_MORE_BINDINGS          0xC002004A
 | 
|---|
| 1726 | #define RPC_NT_GROUP_MEMBER_NOT_FOUND    0xC002004B
 | 
|---|
| 1727 | #define EPT_NT_CANT_CREATE               0xC002004C
 | 
|---|
| 1728 | #define RPC_NT_INVALID_OBJECT            0xC002004D
 | 
|---|
| 1729 | #define RPC_NT_NO_INTERFACES             0xC002004F
 | 
|---|
| 1730 | #define RPC_NT_CALL_CANCELLED            0xC0020050
 | 
|---|
| 1731 | #define RPC_NT_BINDING_INCOMPLETE        0xC0020051
 | 
|---|
| 1732 | #define RPC_NT_COMM_FAILURE              0xC0020052
 | 
|---|
| 1733 | #define RPC_NT_UNSUPPORTED_AUTHN_LEVEL   0xC0020053
 | 
|---|
| 1734 | #define RPC_NT_NO_PRINC_NAME             0xC0020054
 | 
|---|
| 1735 | #define RPC_NT_NOT_RPC_ERROR             0xC0020055
 | 
|---|
| 1736 | #define RPC_NT_UUID_LOCAL_ONLY           0x40020056
 | 
|---|
| 1737 | #define RPC_NT_SEC_PKG_ERROR             0xC0020057
 | 
|---|
| 1738 | #define RPC_NT_NOT_CANCELLED             0xC0020058
 | 
|---|
| 1739 | #define RPC_NT_INVALID_ES_ACTION         0xC0030059
 | 
|---|
| 1740 | #define RPC_NT_WRONG_ES_VERSION          0xC003005A
 | 
|---|
| 1741 | #define RPC_NT_WRONG_STUB_VERSION        0xC003005B
 | 
|---|
| 1742 | #define RPC_NT_INVALID_PIPE_OBJECT       0xC003005C
 | 
|---|
| 1743 | #define RPC_NT_INVALID_PIPE_OPERATION    0xC003005D
 | 
|---|
| 1744 | #define RPC_NT_WRONG_PIPE_VERSION        0xC003005E
 | 
|---|
| 1745 | #define RPC_NT_SEND_INCOMPLETE           0x400200AF
 | 
|---|
| 1746 | 
 | 
|---|
| 1747 | #define STATUS_RESOURCE_LANG_NOT_FOUND   0xC0000204
 | 
|---|
| 1748 | 
 | 
|---|
| 1749 | #define MAXIMUM_WAIT_OBJECTS 64
 | 
|---|
| 1750 | #define MAXIMUM_SUSPEND_COUNT 127
 | 
|---|
| 1751 | 
 | 
|---|
| 1752 | #define EXCEPTION_ACCESS_VIOLATION          STATUS_ACCESS_VIOLATION
 | 
|---|
| 1753 | #define EXCEPTION_DATATYPE_MISALIGNMENT     STATUS_DATATYPE_MISALIGNMENT
 | 
|---|
| 1754 | #define EXCEPTION_BREAKPOINT                STATUS_BREAKPOINT
 | 
|---|
| 1755 | #define EXCEPTION_SINGLE_STEP               STATUS_SINGLE_STEP
 | 
|---|
| 1756 | #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED     STATUS_ARRAY_BOUNDS_EXCEEDED
 | 
|---|
| 1757 | #define EXCEPTION_FLT_DENORMAL_OPERAND      STATUS_FLOAT_DENORMAL_OPERAND
 | 
|---|
| 1758 | #define EXCEPTION_FLT_DIVIDE_BY_ZERO        STATUS_FLOAT_DIVIDE_BY_ZERO
 | 
|---|
| 1759 | #define EXCEPTION_FLT_INEXACT_RESULT        STATUS_FLOAT_INEXACT_RESULT
 | 
|---|
| 1760 | #define EXCEPTION_FLT_INVALID_OPERATION     STATUS_FLOAT_INVALID_OPERATION
 | 
|---|
| 1761 | #define EXCEPTION_FLT_OVERFLOW              STATUS_FLOAT_OVERFLOW
 | 
|---|
| 1762 | #define EXCEPTION_FLT_STACK_CHECK           STATUS_FLOAT_STACK_CHECK
 | 
|---|
| 1763 | #define EXCEPTION_FLT_UNDERFLOW             STATUS_FLOAT_UNDERFLOW
 | 
|---|
| 1764 | #define EXCEPTION_INT_DIVIDE_BY_ZERO        STATUS_INTEGER_DIVIDE_BY_ZERO
 | 
|---|
| 1765 | #define EXCEPTION_INT_OVERFLOW              STATUS_INTEGER_OVERFLOW
 | 
|---|
| 1766 | #define EXCEPTION_PRIV_INSTRUCTION          STATUS_PRIVILEGED_INSTRUCTION
 | 
|---|
| 1767 | #define EXCEPTION_IN_PAGE_ERROR             STATUS_IN_PAGE_ERROR
 | 
|---|
| 1768 | #define EXCEPTION_ILLEGAL_INSTRUCTION       STATUS_ILLEGAL_INSTRUCTION
 | 
|---|
| 1769 | #define EXCEPTION_NONCONTINUABLE_EXCEPTION  STATUS_NONCONTINUABLE_EXCEPTION
 | 
|---|
| 1770 | #define EXCEPTION_STACK_OVERFLOW            STATUS_STACK_OVERFLOW
 | 
|---|
| 1771 | #define EXCEPTION_INVALID_DISPOSITION       STATUS_INVALID_DISPOSITION
 | 
|---|
| 1772 | #define EXCEPTION_GUARD_PAGE                STATUS_GUARD_PAGE_VIOLATION
 | 
|---|
| 1773 | #define EXCEPTION_INVALID_HANDLE            STATUS_INVALID_HANDLE
 | 
|---|
| 1774 | #define CONTROL_C_EXIT                      STATUS_CONTROL_C_EXIT
 | 
|---|
| 1775 | 
 | 
|---|
| 1776 | /* Wine extension; Windows doesn't have a name for this code */
 | 
|---|
| 1777 | #define EXCEPTION_CRITICAL_SECTION_WAIT     0xc0000194
 | 
|---|
| 1778 | 
 | 
|---|
| 1779 | 
 | 
|---|
| 1780 | /*
 | 
|---|
| 1781 |  * Return values from the actual exception handlers
 | 
|---|
| 1782 |  */
 | 
|---|
| 1783 | 
 | 
|---|
| 1784 | #define ExceptionContinueExecution 0
 | 
|---|
| 1785 | #define ExceptionContinueSearch    1
 | 
|---|
| 1786 | #define ExceptionNestedException   2
 | 
|---|
| 1787 | #define ExceptionCollidedUnwind    3
 | 
|---|
| 1788 | 
 | 
|---|
| 1789 | /*
 | 
|---|
| 1790 |  * Return values from filters in except() and from UnhandledExceptionFilter
 | 
|---|
| 1791 |  */
 | 
|---|
| 1792 | 
 | 
|---|
| 1793 | #define EXCEPTION_EXECUTE_HANDLER        1
 | 
|---|
| 1794 | #define EXCEPTION_CONTINUE_SEARCH        0
 | 
|---|
| 1795 | #define EXCEPTION_CONTINUE_EXECUTION    -1
 | 
|---|
| 1796 | 
 | 
|---|
| 1797 | /*
 | 
|---|
| 1798 |  * From OS/2 2.0 exception handling
 | 
|---|
| 1799 |  * Win32 seems to use the same flags as ExceptionFlags in an EXCEPTION_RECORD
 | 
|---|
| 1800 |  */
 | 
|---|
| 1801 | 
 | 
|---|
| 1802 | #define EH_NONCONTINUABLE   0x01
 | 
|---|
| 1803 | #define EH_UNWINDING        0x02
 | 
|---|
| 1804 | #define EH_EXIT_UNWIND      0x04
 | 
|---|
| 1805 | #define EH_STACK_INVALID    0x08
 | 
|---|
| 1806 | #define EH_NESTED_CALL      0x10
 | 
|---|
| 1807 | 
 | 
|---|
| 1808 | #define EXCEPTION_CONTINUABLE        0
 | 
|---|
| 1809 | #define EXCEPTION_NONCONTINUABLE     EH_NONCONTINUABLE
 | 
|---|
| 1810 | 
 | 
|---|
| 1811 | /*
 | 
|---|
| 1812 |  * The exception record used by Win32 to give additional information
 | 
|---|
| 1813 |  * about exception to exception handlers.
 | 
|---|
| 1814 |  */
 | 
|---|
| 1815 | 
 | 
|---|
| 1816 | #define EXCEPTION_MAXIMUM_PARAMETERS 15
 | 
|---|
| 1817 | 
 | 
|---|
| 1818 | typedef struct __EXCEPTION_RECORD
 | 
|---|
| 1819 | {
 | 
|---|
| 1820 |     DWORD    ExceptionCode;
 | 
|---|
| 1821 |     DWORD    ExceptionFlags;
 | 
|---|
| 1822 |     struct __EXCEPTION_RECORD *ExceptionRecord;
 | 
|---|
| 1823 | 
 | 
|---|
| 1824 |     LPVOID   ExceptionAddress;
 | 
|---|
| 1825 |     DWORD    NumberParameters;
 | 
|---|
| 1826 |     DWORD    ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
 | 
|---|
| 1827 | } EXCEPTION_RECORD, *PEXCEPTION_RECORD;
 | 
|---|
| 1828 | 
 | 
|---|
| 1829 | /*
 | 
|---|
| 1830 |  * The exception pointers structure passed to exception filters
 | 
|---|
| 1831 |  * in except() and the UnhandledExceptionFilter().
 | 
|---|
| 1832 |  */
 | 
|---|
| 1833 | 
 | 
|---|
| 1834 | typedef struct _EXCEPTION_POINTERS
 | 
|---|
| 1835 | {
 | 
|---|
| 1836 |   PEXCEPTION_RECORD  ExceptionRecord;
 | 
|---|
| 1837 |   PCONTEXT           ContextRecord;
 | 
|---|
| 1838 | } EXCEPTION_POINTERS, *PEXCEPTION_POINTERS;
 | 
|---|
| 1839 | 
 | 
|---|
| 1840 | 
 | 
|---|
| 1841 | /*
 | 
|---|
| 1842 |  * The exception frame, used for registering exception handlers
 | 
|---|
| 1843 |  * Win32 cares only about this, but compilers generally emit
 | 
|---|
| 1844 |  * larger exception frames for their own use.
 | 
|---|
| 1845 |  */
 | 
|---|
| 1846 | 
 | 
|---|
| 1847 | struct __EXCEPTION_FRAME;
 | 
|---|
| 1848 | 
 | 
|---|
| 1849 | typedef DWORD (*PEXCEPTION_HANDLER)(PEXCEPTION_RECORD,struct __EXCEPTION_FRAME*,
 | 
|---|
| 1850 |                                     PCONTEXT,struct __EXCEPTION_FRAME **);
 | 
|---|
| 1851 | 
 | 
|---|
| 1852 | typedef struct __EXCEPTION_FRAME
 | 
|---|
| 1853 | {
 | 
|---|
| 1854 |   struct __EXCEPTION_FRAME *Prev;
 | 
|---|
| 1855 |   PEXCEPTION_HANDLER       Handler;
 | 
|---|
| 1856 | } EXCEPTION_FRAME, *PEXCEPTION_FRAME;
 | 
|---|
| 1857 | 
 | 
|---|
| 1858 | 
 | 
|---|
| 1859 | /*
 | 
|---|
| 1860 |  * function pointer to a exception filter
 | 
|---|
| 1861 |  */
 | 
|---|
| 1862 | 
 | 
|---|
| 1863 | #ifdef __IBMC__
 | 
|---|
| 1864 | typedef LONG ( * CALLBACK PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS ExceptionInfo);
 | 
|---|
| 1865 | #else
 | 
|---|
| 1866 | typedef LONG ( CALLBACK * PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS ExceptionInfo);
 | 
|---|
| 1867 | #endif
 | 
|---|
| 1868 | 
 | 
|---|
| 1869 | typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;
 | 
|---|
| 1870 | 
 | 
|---|
| 1871 | DWORD WINAPI UnhandledExceptionFilter( PEXCEPTION_POINTERS epointers );
 | 
|---|
| 1872 | LPTOP_LEVEL_EXCEPTION_FILTER
 | 
|---|
| 1873 | WINAPI SetUnhandledExceptionFilter( LPTOP_LEVEL_EXCEPTION_FILTER filter );
 | 
|---|
| 1874 | 
 | 
|---|
| 1875 | /* status values for ContinueDebugEvent */
 | 
|---|
| 1876 | #define DBG_CONTINUE                0x00010002
 | 
|---|
| 1877 | #define DBG_TERMINATE_THREAD        0x40010003
 | 
|---|
| 1878 | #define DBG_TERMINATE_PROCESS       0x40010004
 | 
|---|
| 1879 | #define DBG_CONTROL_C               0x40010005
 | 
|---|
| 1880 | #define DBG_CONTROL_BREAK           0x40010008
 | 
|---|
| 1881 | #define DBG_EXCEPTION_NOT_HANDLED   0x80010001
 | 
|---|
| 1882 | 
 | 
|---|
| 1883 | struct _TEB;
 | 
|---|
| 1884 | 
 | 
|---|
| 1885 | #ifdef __WINE__
 | 
|---|
| 1886 | 
 | 
|---|
| 1887 | #ifndef __WIN32OS2__
 | 
|---|
| 1888 | #if defined(__i386__)
 | 
|---|
| 1889 | static inline struct _TEB * WINE_UNUSED __get_teb(void)
 | 
|---|
| 1890 | {
 | 
|---|
| 1891 |     struct _TEB *teb;
 | 
|---|
| 1892 |     __asm__(".byte 0x64\n\tmovl (0x18),%0" : "=r" (teb));
 | 
|---|
| 1893 |     return teb;
 | 
|---|
| 1894 | }
 | 
|---|
| 1895 | #elif defined(HAVE__LWP_CREATE)
 | 
|---|
| 1896 | extern void *_lwp_getprivate(void);
 | 
|---|
| 1897 | static inline struct _TEB * WINE_UNUSED __get_teb(void)
 | 
|---|
| 1898 | {
 | 
|---|
| 1899 |     return (struct _TEB *)_lwp_getprivate();
 | 
|---|
| 1900 | }
 | 
|---|
| 1901 | #else
 | 
|---|
| 1902 | #error NtCurrentTeb() not defined for this architecture!
 | 
|---|
| 1903 | #endif
 | 
|---|
| 1904 | 
 | 
|---|
| 1905 | #define NtCurrentTeb() __get_teb()
 | 
|---|
| 1906 | 
 | 
|---|
| 1907 | #else /* __WINE__ */
 | 
|---|
| 1908 | #define NtCurrentTeb GetThreadTEB
 | 
|---|
| 1909 | struct _TEB  *WINAPI GetThreadTEB(void);
 | 
|---|
| 1910 | #endif
 | 
|---|
| 1911 | #endif //__WIN32OS2__
 | 
|---|
| 1912 | 
 | 
|---|
| 1913 | /*
 | 
|---|
| 1914 |  * Here follows typedefs for security and tokens.
 | 
|---|
| 1915 |  */
 | 
|---|
| 1916 | 
 | 
|---|
| 1917 | /*
 | 
|---|
| 1918 |  * First a constant for the following typdefs.
 | 
|---|
| 1919 |  */
 | 
|---|
| 1920 | 
 | 
|---|
| 1921 | #define ANYSIZE_ARRAY   1
 | 
|---|
| 1922 | 
 | 
|---|
| 1923 | /* FIXME:  Orphan.  What does it point to? */
 | 
|---|
| 1924 | typedef PVOID PACCESS_TOKEN;
 | 
|---|
| 1925 | 
 | 
|---|
| 1926 | /*
 | 
|---|
| 1927 |  * TOKEN_INFORMATION_CLASS
 | 
|---|
| 1928 |  */
 | 
|---|
| 1929 | 
 | 
|---|
| 1930 | typedef enum _TOKEN_INFORMATION_CLASS {
 | 
|---|
| 1931 |   TokenUser = 1,
 | 
|---|
| 1932 |   TokenGroups,
 | 
|---|
| 1933 |   TokenPrivileges,
 | 
|---|
| 1934 |   TokenOwner,
 | 
|---|
| 1935 |   TokenPrimaryGroup,
 | 
|---|
| 1936 |   TokenDefaultDacl,
 | 
|---|
| 1937 |   TokenSource,
 | 
|---|
| 1938 |   TokenType,
 | 
|---|
| 1939 |   TokenImpersonationLevel,
 | 
|---|
| 1940 |   TokenStatistics
 | 
|---|
| 1941 | } TOKEN_INFORMATION_CLASS;
 | 
|---|
| 1942 | 
 | 
|---|
| 1943 | #ifndef _SECURITY_DEFINED
 | 
|---|
| 1944 | #define _SECURITY_DEFINED
 | 
|---|
| 1945 | 
 | 
|---|
| 1946 | typedef DWORD ACCESS_MASK, *PACCESS_MASK;
 | 
|---|
| 1947 | 
 | 
|---|
| 1948 | typedef struct _GENERIC_MAPPING {
 | 
|---|
| 1949 |     ACCESS_MASK GenericRead;
 | 
|---|
| 1950 |     ACCESS_MASK GenericWrite;
 | 
|---|
| 1951 |     ACCESS_MASK GenericExecute;
 | 
|---|
| 1952 |     ACCESS_MASK GenericAll;
 | 
|---|
| 1953 | } GENERIC_MAPPING, *PGENERIC_MAPPING;
 | 
|---|
| 1954 | 
 | 
|---|
| 1955 | #ifndef SID_IDENTIFIER_AUTHORITY_DEFINED
 | 
|---|
| 1956 | #define SID_IDENTIFIER_AUTHORITY_DEFINED
 | 
|---|
| 1957 | typedef struct {
 | 
|---|
| 1958 |     BYTE Value[6];
 | 
|---|
| 1959 | } SID_IDENTIFIER_AUTHORITY,*PSID_IDENTIFIER_AUTHORITY,*LPSID_IDENTIFIER_AUTHORITY;
 | 
|---|
| 1960 | #endif /* !defined(SID_IDENTIFIER_AUTHORITY_DEFINED) */
 | 
|---|
| 1961 | 
 | 
|---|
| 1962 | #ifndef SID_DEFINED
 | 
|---|
| 1963 | #define SID_DEFINED
 | 
|---|
| 1964 | typedef struct _SID {
 | 
|---|
| 1965 |     BYTE Revision;
 | 
|---|
| 1966 |     BYTE SubAuthorityCount;
 | 
|---|
| 1967 |     SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
 | 
|---|
| 1968 |     DWORD SubAuthority[1];
 | 
|---|
| 1969 | } SID,*PSID;
 | 
|---|
| 1970 | #endif /* !defined(SID_DEFINED) */
 | 
|---|
| 1971 | 
 | 
|---|
| 1972 | #define SID_REVISION                    (1)     /* Current revision */
 | 
|---|
| 1973 | #define SID_MAX_SUB_AUTHORITIES         (15)    /* current max subauths */
 | 
|---|
| 1974 | #define SID_RECOMMENDED_SUB_AUTHORITIES (1)     /* recommended subauths */
 | 
|---|
| 1975 | 
 | 
|---|
| 1976 | 
 | 
|---|
| 1977 | /*
 | 
|---|
| 1978 |  * ACL
 | 
|---|
| 1979 |  */
 | 
|---|
| 1980 | 
 | 
|---|
| 1981 | #define ACL_REVISION1 1
 | 
|---|
| 1982 | #define ACL_REVISION2 2
 | 
|---|
| 1983 | #define ACL_REVISION3 3
 | 
|---|
| 1984 | #define ACL_REVISION4 4
 | 
|---|
| 1985 | 
 | 
|---|
| 1986 | typedef enum _ACL_INFORMATION_CLASS {
 | 
|---|
| 1987 |     AclRevisionInformation = 1,
 | 
|---|
| 1988 |     AclSizeInformation
 | 
|---|
| 1989 | } ACL_INFORMATION_CLASS;
 | 
|---|
| 1990 | 
 | 
|---|
| 1991 | typedef struct _ACL_REVISION_INFORMATION {
 | 
|---|
| 1992 |     DWORD AclRevision;
 | 
|---|
| 1993 | } ACL_REVISION_INFORMATION;
 | 
|---|
| 1994 | typedef ACL_REVISION_INFORMATION *PACL_REVISION_INFORMATION;
 | 
|---|
| 1995 | 
 | 
|---|
| 1996 | typedef struct _ACL_SIZE_INFORMATION {
 | 
|---|
| 1997 |     DWORD AceCount;
 | 
|---|
| 1998 |     DWORD AclBytesInUse;
 | 
|---|
| 1999 |     DWORD AclBytesFree;
 | 
|---|
| 2000 | } ACL_SIZE_INFORMATION;
 | 
|---|
| 2001 | typedef ACL_SIZE_INFORMATION *PACL_SIZE_INFORMATION;
 | 
|---|
| 2002 | 
 | 
|---|
| 2003 | #define MIN_ACL_REVISION ACL_REVISION2
 | 
|---|
| 2004 | #define MAX_ACL_REVISION ACL_REVISION4
 | 
|---|
| 2005 | 
 | 
|---|
| 2006 | typedef struct _ACL {
 | 
|---|
| 2007 |     BYTE AclRevision;
 | 
|---|
| 2008 |     BYTE Sbz1;
 | 
|---|
| 2009 |     WORD AclSize;
 | 
|---|
| 2010 |     WORD AceCount;
 | 
|---|
| 2011 |     WORD Sbz2;
 | 
|---|
| 2012 | } ACL, *PACL;
 | 
|---|
| 2013 | 
 | 
|---|
| 2014 | 
 | 
|---|
| 2015 | /* SECURITY_DESCRIPTOR */
 | 
|---|
| 2016 | #define SECURITY_DESCRIPTOR_REVISION    1
 | 
|---|
| 2017 | #define SECURITY_DESCRIPTOR_REVISION1   1
 | 
|---|
| 2018 | 
 | 
|---|
| 2019 | 
 | 
|---|
| 2020 | #define SE_OWNER_DEFAULTED      0x0001
 | 
|---|
| 2021 | #define SE_GROUP_DEFAULTED      0x0002
 | 
|---|
| 2022 | #define SE_DACL_PRESENT         0x0004
 | 
|---|
| 2023 | #define SE_DACL_DEFAULTED       0x0008
 | 
|---|
| 2024 | #define SE_SACL_PRESENT         0x0010
 | 
|---|
| 2025 | #define SE_SACL_DEFAULTED       0x0020
 | 
|---|
| 2026 | #define SE_SELF_RELATIVE        0x8000
 | 
|---|
| 2027 | 
 | 
|---|
| 2028 | typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION;
 | 
|---|
| 2029 | typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
 | 
|---|
| 2030 | 
 | 
|---|
| 2031 | /* The security descriptor structure */
 | 
|---|
| 2032 | typedef struct {
 | 
|---|
| 2033 |     BYTE Revision;
 | 
|---|
| 2034 |     BYTE Sbz1;
 | 
|---|
| 2035 |     SECURITY_DESCRIPTOR_CONTROL Control;
 | 
|---|
| 2036 |     DWORD Owner;
 | 
|---|
| 2037 |     DWORD Group;
 | 
|---|
| 2038 |     DWORD Sacl;
 | 
|---|
| 2039 |     DWORD Dacl;
 | 
|---|
| 2040 | } SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE;
 | 
|---|
| 2041 | 
 | 
|---|
| 2042 | typedef struct {
 | 
|---|
| 2043 |     BYTE Revision;
 | 
|---|
| 2044 |     BYTE Sbz1;
 | 
|---|
| 2045 |     SECURITY_DESCRIPTOR_CONTROL Control;
 | 
|---|
| 2046 |     PSID Owner;
 | 
|---|
| 2047 |     PSID Group;
 | 
|---|
| 2048 |     PACL Sacl;
 | 
|---|
| 2049 |     PACL Dacl;
 | 
|---|
| 2050 | } SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
 | 
|---|
| 2051 | 
 | 
|---|
| 2052 | #define SECURITY_DESCRIPTOR_MIN_LENGTH   (sizeof(SECURITY_DESCRIPTOR))
 | 
|---|
| 2053 | 
 | 
|---|
| 2054 | 
 | 
|---|
| 2055 | #endif /* _SECURITY_DEFINED */
 | 
|---|
| 2056 | 
 | 
|---|
| 2057 | 
 | 
|---|
| 2058 | /*
 | 
|---|
| 2059 |  * SID_AND_ATTRIBUTES
 | 
|---|
| 2060 |  */
 | 
|---|
| 2061 | 
 | 
|---|
| 2062 | 
 | 
|---|
| 2063 | typedef struct _SID_AND_ATTRIBUTES {
 | 
|---|
| 2064 |   PSID  Sid;
 | 
|---|
| 2065 |   DWORD Attributes;
 | 
|---|
| 2066 | } SID_AND_ATTRIBUTES ;
 | 
|---|
| 2067 | 
 | 
|---|
| 2068 | /* security entities */
 | 
|---|
| 2069 | #define SECURITY_NULL_RID                       (0x00000000L)
 | 
|---|
| 2070 | #define SECURITY_WORLD_RID                      (0x00000000L)
 | 
|---|
| 2071 | #define SECURITY_LOCAL_RID                      (0X00000000L)
 | 
|---|
| 2072 | 
 | 
|---|
| 2073 | #define SECURITY_NULL_SID_AUTHORITY             {0,0,0,0,0,0}
 | 
|---|
| 2074 | 
 | 
|---|
| 2075 | /* S-1-1 */
 | 
|---|
| 2076 | #define SECURITY_WORLD_SID_AUTHORITY            {0,0,0,0,0,1}
 | 
|---|
| 2077 | 
 | 
|---|
| 2078 | /* S-1-2 */
 | 
|---|
| 2079 | #define SECURITY_LOCAL_SID_AUTHORITY            {0,0,0,0,0,2}
 | 
|---|
| 2080 | 
 | 
|---|
| 2081 | /* S-1-3 */
 | 
|---|
| 2082 | #define SECURITY_CREATOR_SID_AUTHORITY          {0,0,0,0,0,3}
 | 
|---|
| 2083 | #define SECURITY_CREATOR_OWNER_RID              (0x00000000L)
 | 
|---|
| 2084 | #define SECURITY_CREATOR_GROUP_RID              (0x00000001L)
 | 
|---|
| 2085 | #define SECURITY_CREATOR_OWNER_SERVER_RID       (0x00000002L)
 | 
|---|
| 2086 | #define SECURITY_CREATOR_GROUP_SERVER_RID       (0x00000003L)
 | 
|---|
| 2087 | 
 | 
|---|
| 2088 | /* S-1-4 */
 | 
|---|
| 2089 | #define SECURITY_NON_UNIQUE_AUTHORITY           {0,0,0,0,0,4}
 | 
|---|
| 2090 | 
 | 
|---|
| 2091 | /* S-1-5 */
 | 
|---|
| 2092 | #define SECURITY_NT_AUTHORITY                   {0,0,0,0,0,5}
 | 
|---|
| 2093 | #define SECURITY_DIALUP_RID                     0x00000001L
 | 
|---|
| 2094 | #define SECURITY_NETWORK_RID                    0x00000002L
 | 
|---|
| 2095 | #define SECURITY_BATCH_RID                      0x00000003L
 | 
|---|
| 2096 | #define SECURITY_INTERACTIVE_RID                0x00000004L
 | 
|---|
| 2097 | #define SECURITY_LOGON_IDS_RID                  0x00000005L
 | 
|---|
| 2098 | #define SECURITY_SERVICE_RID                    0x00000006L
 | 
|---|
| 2099 | #define SECURITY_ANONYMOUS_LOGON_RID            0x00000007L
 | 
|---|
| 2100 | #define SECURITY_PROXY_RID                      0x00000008L
 | 
|---|
| 2101 | #define SECURITY_ENTERPRISE_CONTROLLERS_RID     0x00000009L
 | 
|---|
| 2102 | #define SECURITY_PRINCIPAL_SELF_RID             0x0000000AL
 | 
|---|
| 2103 | #define SECURITY_AUTHENTICATED_USER_RID         0x0000000BL
 | 
|---|
| 2104 | #define SECURITY_RESTRICTED_CODE_RID            0x0000000CL
 | 
|---|
| 2105 | #define SECURITY_TERMINAL_SERVER_RID            0x0000000DL
 | 
|---|
| 2106 | #define SECURITY_LOCAL_SYSTEM_RID               0x00000012L
 | 
|---|
| 2107 | #define SECURITY_NT_NON_UNIQUE                  0x00000015L
 | 
|---|
| 2108 | #define SECURITY_BUILTIN_DOMAIN_RID             0x00000020L
 | 
|---|
| 2109 | 
 | 
|---|
| 2110 | #define DOMAIN_GROUP_RID_ADMINS                 0x00000200L
 | 
|---|
| 2111 | #define DOMAIN_GROUP_RID_USERS                  0x00000201L
 | 
|---|
| 2112 | #define DOMAIN_GROUP_RID_GUESTS                 0x00000202L
 | 
|---|
| 2113 | 
 | 
|---|
| 2114 | #define DOMAIN_ALIAS_RID_ADMINS                 0x00000220L
 | 
|---|
| 2115 | #define DOMAIN_ALIAS_RID_USERS                  0x00000221L
 | 
|---|
| 2116 | #define DOMAIN_ALIAS_RID_GUESTS                 0x00000222L
 | 
|---|
| 2117 | 
 | 
|---|
| 2118 | #define SECURITY_SERVER_LOGON_RID               SECURITY_ENTERPRISE_CONTROLLERS_RID
 | 
|---|
| 2119 | 
 | 
|---|
| 2120 | #define SECURITY_LOGON_IDS_RID_COUNT            (3L)
 | 
|---|
| 2121 | 
 | 
|---|
| 2122 | 
 | 
|---|
| 2123 | /*
 | 
|---|
| 2124 |  * Token access rights
 | 
|---|
| 2125 |  */
 | 
|---|
| 2126 | 
 | 
|---|
| 2127 | #define TOKEN_ASSIGN_PRIMARY            (0x0001)
 | 
|---|
| 2128 | #define TOKEN_DUPLICATE                 (0x0002)
 | 
|---|
| 2129 | #define TOKEN_IMPERSONATE               (0x0004)
 | 
|---|
| 2130 | #define TOKEN_QUERY                     (0x0008)
 | 
|---|
| 2131 | #define TOKEN_QUERY_SOURCE              (0x0010)
 | 
|---|
| 2132 | #define TOKEN_ADJUST_PRIVILEGES         (0x0020)
 | 
|---|
| 2133 | #define TOKEN_ADJUST_GROUPS             (0x0040)
 | 
|---|
| 2134 | #define TOKEN_ADJUST_DEFAULT            (0x0080)
 | 
|---|
| 2135 | #define TOKEN_ADJUST_SESSIONID          (0x0100)
 | 
|---|
| 2136 | 
 | 
|---|
| 2137 | #define TOKEN_ALL_ACCESS_P                      (STANDARD_RIGHTS_REQUIRED   | \
 | 
|---|
| 2138 |                                                                          TOKEN_ASSIGN_PRIMARY       | \
 | 
|---|
| 2139 |                                      TOKEN_DUPLICATE            | \
 | 
|---|
| 2140 |                                                                          TOKEN_IMPERSONATE              | \
 | 
|---|
| 2141 |                                                                          TOKEN_QUERY                    | \
 | 
|---|
| 2142 |                                                                          TOKEN_QUERY_SOURCE             | \
 | 
|---|
| 2143 |                                                                          TOKEN_ADJUST_PRIVILEGES        | \
 | 
|---|
| 2144 |                                      TOKEN_ADJUST_GROUPS        | \
 | 
|---|
| 2145 |                                      TOKEN_ADJUST_DEFAULT)
 | 
|---|
| 2146 | 
 | 
|---|
| 2147 | #define TOKEN_ALL_ACCESS                        (TOKEN_ALL_ACCESS_P             | \
 | 
|---|
| 2148 |                                                                          TOKEN_ADJUST_SESSIONID)
 | 
|---|
| 2149 | 
 | 
|---|
| 2150 | #define TOKEN_READ                              (STANDARD_RIGHTS_READ       | \
 | 
|---|
| 2151 |                                                                          TOKEN_QUERY)
 | 
|---|
| 2152 | 
 | 
|---|
| 2153 | #define TOKEN_WRITE                             (STANDARD_RIGHTS_WRITE      | \
 | 
|---|
| 2154 |                                                                          TOKEN_ADJUST_PRIVILEGES    | \
 | 
|---|
| 2155 |                                                                          TOKEN_ADJUST_GROUPS        | \
 | 
|---|
| 2156 |                                                                          TOKEN_ADJUST_DEFAULT)
 | 
|---|
| 2157 | 
 | 
|---|
| 2158 | #define TOKEN_EXECUTE                           (STANDARD_RIGHTS_EXECUTE)
 | 
|---|
| 2159 | 
 | 
|---|
| 2160 | /*
 | 
|---|
| 2161 |  * TOKEN_USER
 | 
|---|
| 2162 |  */
 | 
|---|
| 2163 | 
 | 
|---|
| 2164 | typedef struct _TOKEN_USER {
 | 
|---|
| 2165 |   SID_AND_ATTRIBUTES User;
 | 
|---|
| 2166 | } TOKEN_USER, *PTOKEN_USER;
 | 
|---|
| 2167 | 
 | 
|---|
| 2168 | /*
 | 
|---|
| 2169 |  * TOKEN_GROUPS
 | 
|---|
| 2170 |  */
 | 
|---|
| 2171 | 
 | 
|---|
| 2172 | typedef struct _TOKEN_GROUPS  {
 | 
|---|
| 2173 |   DWORD GroupCount;
 | 
|---|
| 2174 |   SID_AND_ATTRIBUTES Groups[ANYSIZE_ARRAY];
 | 
|---|
| 2175 | } TOKEN_GROUPS, *PTOKEN_GROUPS;
 | 
|---|
| 2176 | 
 | 
|---|
| 2177 | /*
 | 
|---|
| 2178 |  * LUID_AND_ATTRIBUTES
 | 
|---|
| 2179 |  */
 | 
|---|
| 2180 | #if defined(__WIN32OS2__) && !defined(WINE_LARGE_INTEGER)
 | 
|---|
| 2181 | typedef struct _LARGE_INTEGER {
 | 
|---|
| 2182 |         ULONG LowPart;
 | 
|---|
| 2183 |         LONG HighPart;
 | 
|---|
| 2184 | } LARGE_INTEGER, *LPLARGE_INTEGER, *PLARGE_INTEGER;
 | 
|---|
| 2185 | 
 | 
|---|
| 2186 | typedef struct _ULARGE_INTEGER {
 | 
|---|
| 2187 |         ULONG LowPart;
 | 
|---|
| 2188 |         LONG HighPart;
 | 
|---|
| 2189 | } ULARGE_INTEGER, *LPULARGE_INTEGER, *PULARGE_INTEGER;
 | 
|---|
| 2190 | #else
 | 
|---|
| 2191 | typedef union _LARGE_INTEGER {
 | 
|---|
| 2192 |     struct {
 | 
|---|
| 2193 |         DWORD    LowPart;
 | 
|---|
| 2194 |         LONG     HighPart;
 | 
|---|
| 2195 |     } DUMMYSTRUCTNAME;
 | 
|---|
| 2196 |     LONGLONG QuadPart;
 | 
|---|
| 2197 | } LARGE_INTEGER, *LPLARGE_INTEGER, *PLARGE_INTEGER;
 | 
|---|
| 2198 | 
 | 
|---|
| 2199 | typedef union _ULARGE_INTEGER {
 | 
|---|
| 2200 |     struct {
 | 
|---|
| 2201 |         DWORD    LowPart;
 | 
|---|
| 2202 |         DWORD    HighPart;
 | 
|---|
| 2203 |     } DUMMYSTRUCTNAME;
 | 
|---|
| 2204 |     ULONGLONG QuadPart;
 | 
|---|
| 2205 | } ULARGE_INTEGER, *LPULARGE_INTEGER, *PULARGE_INTEGER;
 | 
|---|
| 2206 | #endif
 | 
|---|
| 2207 | /*
 | 
|---|
| 2208 |  * Locally Unique Identifier
 | 
|---|
| 2209 |  */
 | 
|---|
| 2210 | 
 | 
|---|
| 2211 | typedef LARGE_INTEGER LUID,*PLUID;
 | 
|---|
| 2212 | 
 | 
|---|
| 2213 | typedef struct _LUID_AND_ATTRIBUTES {
 | 
|---|
| 2214 |   LUID   Luid;
 | 
|---|
| 2215 |   DWORD  Attributes;
 | 
|---|
| 2216 | } LUID_AND_ATTRIBUTES;
 | 
|---|
| 2217 | 
 | 
|---|
| 2218 | /*
 | 
|---|
| 2219 |  * PRIVILEGE_SET
 | 
|---|
| 2220 |  */
 | 
|---|
| 2221 | 
 | 
|---|
| 2222 | typedef struct _PRIVILEGE_SET {
 | 
|---|
| 2223 |     DWORD PrivilegeCount;
 | 
|---|
| 2224 |     DWORD Control;
 | 
|---|
| 2225 |     LUID_AND_ATTRIBUTES Privilege[ANYSIZE_ARRAY];
 | 
|---|
| 2226 | } PRIVILEGE_SET, *PPRIVILEGE_SET;
 | 
|---|
| 2227 | 
 | 
|---|
| 2228 | /*
 | 
|---|
| 2229 |  * TOKEN_PRIVILEGES
 | 
|---|
| 2230 |  */
 | 
|---|
| 2231 | 
 | 
|---|
| 2232 | typedef struct _TOKEN_PRIVILEGES {
 | 
|---|
| 2233 |   DWORD PrivilegeCount;
 | 
|---|
| 2234 |   LUID_AND_ATTRIBUTES Privileges[ANYSIZE_ARRAY];
 | 
|---|
| 2235 | } TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES;
 | 
|---|
| 2236 | 
 | 
|---|
| 2237 | /*
 | 
|---|
| 2238 |  * TOKEN_OWNER
 | 
|---|
| 2239 |  */
 | 
|---|
| 2240 | 
 | 
|---|
| 2241 | typedef struct _TOKEN_OWNER {
 | 
|---|
| 2242 |   PSID Owner;
 | 
|---|
| 2243 | } TOKEN_OWNER, *PTOKEN_OWNER;
 | 
|---|
| 2244 | 
 | 
|---|
| 2245 | /*
 | 
|---|
| 2246 |  * TOKEN_PRIMARY_GROUP
 | 
|---|
| 2247 |  */
 | 
|---|
| 2248 | 
 | 
|---|
| 2249 | typedef struct _TOKEN_PRIMARY_GROUP {
 | 
|---|
| 2250 |   PSID PrimaryGroup;
 | 
|---|
| 2251 | } TOKEN_PRIMARY_GROUP, *PTOKEN_PRIMARY_GROUP;
 | 
|---|
| 2252 | 
 | 
|---|
| 2253 | 
 | 
|---|
| 2254 | /*
 | 
|---|
| 2255 |  * TOKEN_DEFAULT_DACL
 | 
|---|
| 2256 |  */
 | 
|---|
| 2257 | 
 | 
|---|
| 2258 | typedef struct _TOKEN_DEFAULT_DACL {
 | 
|---|
| 2259 |   PACL DefaultDacl;
 | 
|---|
| 2260 | } TOKEN_DEFAULT_DACL, *PTOKEN_DEFAULT_DACL;
 | 
|---|
| 2261 | 
 | 
|---|
| 2262 | /*
 | 
|---|
| 2263 |  * TOKEN_SOURCEL
 | 
|---|
| 2264 |  */
 | 
|---|
| 2265 | 
 | 
|---|
| 2266 | #define TOKEN_SOURCE_LENGTH 8
 | 
|---|
| 2267 | 
 | 
|---|
| 2268 | typedef struct _TOKEN_SOURCE {
 | 
|---|
| 2269 |   char SourceName[TOKEN_SOURCE_LENGTH];
 | 
|---|
| 2270 |   LUID SourceIdentifier;
 | 
|---|
| 2271 | } TOKEN_SOURCE, *PTOKEN_SOURCE;
 | 
|---|
| 2272 | 
 | 
|---|
| 2273 | /*
 | 
|---|
| 2274 |  * TOKEN_TYPE
 | 
|---|
| 2275 |  */
 | 
|---|
| 2276 | 
 | 
|---|
| 2277 | typedef enum tagTOKEN_TYPE {
 | 
|---|
| 2278 |   TokenPrimary = 1,
 | 
|---|
| 2279 |   TokenImpersonation
 | 
|---|
| 2280 | } TOKEN_TYPE, *PTOKEN_TYPE;
 | 
|---|
| 2281 | 
 | 
|---|
| 2282 | /*
 | 
|---|
| 2283 |  * SECURITY_IMPERSONATION_LEVEL
 | 
|---|
| 2284 |  */
 | 
|---|
| 2285 | 
 | 
|---|
| 2286 | typedef enum _SECURITY_IMPERSONATION_LEVEL {
 | 
|---|
| 2287 |   SecurityAnonymous,
 | 
|---|
| 2288 |   SecurityIdentification,
 | 
|---|
| 2289 |   SecurityImpersonation,
 | 
|---|
| 2290 |   SecurityDelegation
 | 
|---|
| 2291 | } SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL;
 | 
|---|
| 2292 | 
 | 
|---|
| 2293 | 
 | 
|---|
| 2294 | typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE,
 | 
|---|
| 2295 |         * PSECURITY_CONTEXT_TRACKING_MODE;
 | 
|---|
| 2296 | /*
 | 
|---|
| 2297 |  *      Quality of Service
 | 
|---|
| 2298 |  */
 | 
|---|
| 2299 | 
 | 
|---|
| 2300 | typedef struct _SECURITY_QUALITY_OF_SERVICE {
 | 
|---|
| 2301 |   DWORD                         Length;
 | 
|---|
| 2302 |   SECURITY_IMPERSONATION_LEVEL  ImpersonationLevel;
 | 
|---|
| 2303 |   SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode;
 | 
|---|
| 2304 |   BOOL                          EffectiveOnly;
 | 
|---|
| 2305 | } SECURITY_QUALITY_OF_SERVICE, *PSECURITY_QUALITY_OF_SERVICE;
 | 
|---|
| 2306 | 
 | 
|---|
| 2307 | /*
 | 
|---|
| 2308 |  * TOKEN_STATISTICS
 | 
|---|
| 2309 |  */
 | 
|---|
| 2310 | 
 | 
|---|
| 2311 | typedef struct _TOKEN_STATISTICS {
 | 
|---|
| 2312 |   LUID  TokenId;
 | 
|---|
| 2313 |   LUID  AuthenticationId;
 | 
|---|
| 2314 |   LARGE_INTEGER ExpirationTime;
 | 
|---|
| 2315 |   TOKEN_TYPE    TokenType;
 | 
|---|
| 2316 |   SECURITY_IMPERSONATION_LEVEL ImpersonationLevel;
 | 
|---|
| 2317 |   DWORD DynamicCharged;
 | 
|---|
| 2318 |   DWORD DynamicAvailable;
 | 
|---|
| 2319 |   DWORD GroupCount;
 | 
|---|
| 2320 |   DWORD PrivilegeCount;
 | 
|---|
| 2321 |   LUID  ModifiedId;
 | 
|---|
| 2322 | } TOKEN_STATISTICS, *PTOKEN_STATISTICS;
 | 
|---|
| 2323 | 
 | 
|---|
| 2324 | /*
 | 
|---|
| 2325 |  *      ACLs of NT
 | 
|---|
| 2326 |  */
 | 
|---|
| 2327 | 
 | 
|---|
| 2328 | #define ACL_REVISION    2
 | 
|---|
| 2329 | 
 | 
|---|
| 2330 | #define ACL_REVISION1   1
 | 
|---|
| 2331 | #define ACL_REVISION2   2
 | 
|---|
| 2332 | 
 | 
|---|
| 2333 | /* ACEs, directly starting after an ACL */
 | 
|---|
| 2334 | typedef struct _ACE_HEADER {
 | 
|---|
| 2335 |         BYTE    AceType;
 | 
|---|
| 2336 |         BYTE    AceFlags;
 | 
|---|
| 2337 |         WORD    AceSize;
 | 
|---|
| 2338 | } ACE_HEADER,*PACE_HEADER;
 | 
|---|
| 2339 | 
 | 
|---|
| 2340 | /* AceType */
 | 
|---|
| 2341 | #define ACCESS_ALLOWED_ACE_TYPE         0
 | 
|---|
| 2342 | #define ACCESS_DENIED_ACE_TYPE          1
 | 
|---|
| 2343 | #define SYSTEM_AUDIT_ACE_TYPE           2
 | 
|---|
| 2344 | #define SYSTEM_ALARM_ACE_TYPE           3
 | 
|---|
| 2345 | 
 | 
|---|
| 2346 | /* inherit AceFlags */
 | 
|---|
| 2347 | #define OBJECT_INHERIT_ACE              0x01
 | 
|---|
| 2348 | #define CONTAINER_INHERIT_ACE           0x02
 | 
|---|
| 2349 | #define NO_PROPAGATE_INHERIT_ACE        0x04
 | 
|---|
| 2350 | #define INHERIT_ONLY_ACE                0x08
 | 
|---|
| 2351 | #define INHERITED_ACE           0x10
 | 
|---|
| 2352 | #define VALID_INHERIT_FLAGS             0x1F
 | 
|---|
| 2353 | 
 | 
|---|
| 2354 | /* AceFlags mask for what events we (should) audit */
 | 
|---|
| 2355 | #define SUCCESSFUL_ACCESS_ACE_FLAG      0x40
 | 
|---|
| 2356 | #define FAILED_ACCESS_ACE_FLAG          0x80
 | 
|---|
| 2357 | 
 | 
|---|
| 2358 | /* different ACEs depending on AceType
 | 
|---|
| 2359 |  * SidStart marks the begin of a SID
 | 
|---|
| 2360 |  * so the thing finally looks like this:
 | 
|---|
| 2361 |  * 0: ACE_HEADER
 | 
|---|
| 2362 |  * 4: ACCESS_MASK
 | 
|---|
| 2363 |  * 8... : SID
 | 
|---|
| 2364 |  */
 | 
|---|
| 2365 | typedef struct _ACCESS_ALLOWED_ACE {
 | 
|---|
| 2366 |         ACE_HEADER      Header;
 | 
|---|
| 2367 |         DWORD           Mask;
 | 
|---|
| 2368 |         DWORD           SidStart;
 | 
|---|
| 2369 | } ACCESS_ALLOWED_ACE,*PACCESS_ALLOWED_ACE;
 | 
|---|
| 2370 | 
 | 
|---|
| 2371 | typedef struct _ACCESS_DENIED_ACE {
 | 
|---|
| 2372 |         ACE_HEADER      Header;
 | 
|---|
| 2373 |         DWORD           Mask;
 | 
|---|
| 2374 |         DWORD           SidStart;
 | 
|---|
| 2375 | } ACCESS_DENIED_ACE,*PACCESS_DENIED_ACE;
 | 
|---|
| 2376 | 
 | 
|---|
| 2377 | typedef struct _SYSTEM_AUDIT_ACE {
 | 
|---|
| 2378 |         ACE_HEADER      Header;
 | 
|---|
| 2379 |         DWORD           Mask;
 | 
|---|
| 2380 |         DWORD           SidStart;
 | 
|---|
| 2381 | } SYSTEM_AUDIT_ACE,*PSYSTEM_AUDIT_ACE;
 | 
|---|
| 2382 | 
 | 
|---|
| 2383 | typedef struct _SYSTEM_ALARM_ACE {
 | 
|---|
| 2384 |         ACE_HEADER      Header;
 | 
|---|
| 2385 |         DWORD           Mask;
 | 
|---|
| 2386 |         DWORD           SidStart;
 | 
|---|
| 2387 | } SYSTEM_ALARM_ACE,*PSYSTEM_ALARM_ACE;
 | 
|---|
| 2388 | 
 | 
|---|
| 2389 | typedef enum tagSID_NAME_USE {
 | 
|---|
| 2390 |         SidTypeUser = 1,
 | 
|---|
| 2391 |         SidTypeGroup,
 | 
|---|
| 2392 |         SidTypeDomain,
 | 
|---|
| 2393 |         SidTypeAlias,
 | 
|---|
| 2394 |         SidTypeWellKnownGroup,
 | 
|---|
| 2395 |         SidTypeDeletedAccount,
 | 
|---|
| 2396 |         SidTypeInvalid,
 | 
|---|
| 2397 |         SidTypeUnknown
 | 
|---|
| 2398 | } SID_NAME_USE,*PSID_NAME_USE;
 | 
|---|
| 2399 | 
 | 
|---|
| 2400 | /* Access rights */
 | 
|---|
| 2401 | 
 | 
|---|
| 2402 | #define DELETE                     0x00010000
 | 
|---|
| 2403 | #define READ_CONTROL               0x00020000
 | 
|---|
| 2404 | #define WRITE_DAC                  0x00040000
 | 
|---|
| 2405 | #define WRITE_OWNER                0x00080000
 | 
|---|
| 2406 | #define SYNCHRONIZE                0x00100000
 | 
|---|
| 2407 | #define STANDARD_RIGHTS_REQUIRED   0x000f0000
 | 
|---|
| 2408 | 
 | 
|---|
| 2409 | #define STANDARD_RIGHTS_READ       READ_CONTROL
 | 
|---|
| 2410 | #define STANDARD_RIGHTS_WRITE      READ_CONTROL
 | 
|---|
| 2411 | #define STANDARD_RIGHTS_EXECUTE    READ_CONTROL
 | 
|---|
| 2412 | 
 | 
|---|
| 2413 | #define STANDARD_RIGHTS_ALL        0x001f0000
 | 
|---|
| 2414 | 
 | 
|---|
| 2415 | #define SPECIFIC_RIGHTS_ALL        0x0000ffff
 | 
|---|
| 2416 | 
 | 
|---|
| 2417 | #define GENERIC_READ               0x80000000
 | 
|---|
| 2418 | #define GENERIC_WRITE              0x40000000
 | 
|---|
| 2419 | #define GENERIC_EXECUTE            0x20000000
 | 
|---|
| 2420 | #define GENERIC_ALL                0x10000000
 | 
|---|
| 2421 | 
 | 
|---|
| 2422 | #define MAXIMUM_ALLOWED            0x02000000
 | 
|---|
| 2423 | #define ACCESS_SYSTEM_SECURITY     0x01000000
 | 
|---|
| 2424 | 
 | 
|---|
| 2425 | #define EVENT_MODIFY_STATE         0x0002
 | 
|---|
| 2426 | #define EVENT_ALL_ACCESS           (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
 | 
|---|
| 2427 | 
 | 
|---|
| 2428 | #define SEMAPHORE_MODIFY_STATE     0x0002
 | 
|---|
| 2429 | #define SEMAPHORE_ALL_ACCESS       (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
 | 
|---|
| 2430 | 
 | 
|---|
| 2431 | #define MUTEX_MODIFY_STATE         0x0001
 | 
|---|
| 2432 | #define MUTEX_ALL_ACCESS           (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1)
 | 
|---|
| 2433 | 
 | 
|---|
| 2434 | #define PROCESS_TERMINATE          0x0001
 | 
|---|
| 2435 | #define PROCESS_CREATE_THREAD      0x0002
 | 
|---|
| 2436 | #define PROCESS_VM_OPERATION       0x0008
 | 
|---|
| 2437 | #define PROCESS_VM_READ            0x0010
 | 
|---|
| 2438 | #define PROCESS_VM_WRITE           0x0020
 | 
|---|
| 2439 | #define PROCESS_DUP_HANDLE         0x0040
 | 
|---|
| 2440 | #define PROCESS_CREATE_PROCESS     0x0080
 | 
|---|
| 2441 | #define PROCESS_SET_QUOTA          0x0100
 | 
|---|
| 2442 | #define PROCESS_SET_INFORMATION    0x0200
 | 
|---|
| 2443 | #define PROCESS_QUERY_INFORMATION  0x0400
 | 
|---|
| 2444 | #define PROCESS_ALL_ACCESS         (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0xfff)
 | 
|---|
| 2445 | 
 | 
|---|
| 2446 | #define THREAD_TERMINATE           0x0001
 | 
|---|
| 2447 | #define THREAD_SUSPEND_RESUME      0x0002
 | 
|---|
| 2448 | #define THREAD_GET_CONTEXT         0x0008
 | 
|---|
| 2449 | #define THREAD_SET_CONTEXT         0x0010
 | 
|---|
| 2450 | #define THREAD_SET_INFORMATION     0x0020
 | 
|---|
| 2451 | #define THREAD_QUERY_INFORMATION   0x0040
 | 
|---|
| 2452 | #define THREAD_SET_THREAD_TOKEN    0x0080
 | 
|---|
| 2453 | #define THREAD_IMPERSONATE         0x0100
 | 
|---|
| 2454 | #define THREAD_DIRECT_IMPERSONATION 0x0200
 | 
|---|
| 2455 | #define THREAD_ALL_ACCESS          (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff)
 | 
|---|
| 2456 | 
 | 
|---|
| 2457 | #define THREAD_BASE_PRIORITY_LOWRT  15
 | 
|---|
| 2458 | #define THREAD_BASE_PRIORITY_MAX    2
 | 
|---|
| 2459 | #define THREAD_BASE_PRIORITY_MIN   -2
 | 
|---|
| 2460 | #define THREAD_BASE_PRIORITY_IDLE  -15
 | 
|---|
| 2461 | 
 | 
|---|
| 2462 | #define FILE_READ_DATA            0x0001    /* file & pipe */
 | 
|---|
| 2463 | #define FILE_LIST_DIRECTORY       0x0001    /* directory */
 | 
|---|
| 2464 | #define FILE_WRITE_DATA           0x0002    /* file & pipe */
 | 
|---|
| 2465 | #define FILE_ADD_FILE             0x0002    /* directory */
 | 
|---|
| 2466 | #define FILE_APPEND_DATA          0x0004    /* file */
 | 
|---|
| 2467 | #define FILE_ADD_SUBDIRECTORY     0x0004    /* directory */
 | 
|---|
| 2468 | #define FILE_CREATE_PIPE_INSTANCE 0x0004    /* named pipe */
 | 
|---|
| 2469 | #define FILE_READ_EA              0x0008    /* file & directory */
 | 
|---|
| 2470 | #define FILE_READ_PROPERTIES      FILE_READ_EA
 | 
|---|
| 2471 | #define FILE_WRITE_EA             0x0010    /* file & directory */
 | 
|---|
| 2472 | #define FILE_WRITE_PROPERTIES     FILE_WRITE_EA
 | 
|---|
| 2473 | #define FILE_EXECUTE              0x0020    /* file */
 | 
|---|
| 2474 | #define FILE_TRAVERSE             0x0020    /* directory */
 | 
|---|
| 2475 | #define FILE_DELETE_CHILD         0x0040    /* directory */
 | 
|---|
| 2476 | #define FILE_READ_ATTRIBUTES      0x0080    /* all */
 | 
|---|
| 2477 | #define FILE_WRITE_ATTRIBUTES     0x0100    /* all */
 | 
|---|
| 2478 | #define FILE_ALL_ACCESS           (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1ff)
 | 
|---|
| 2479 | 
 | 
|---|
| 2480 | #define FILE_GENERIC_READ         (STANDARD_RIGHTS_READ | FILE_READ_DATA | \
 | 
|---|
| 2481 |                                    FILE_READ_ATTRIBUTES | FILE_READ_EA | \
 | 
|---|
| 2482 |                                    SYNCHRONIZE)
 | 
|---|
| 2483 | #define FILE_GENERIC_WRITE        (STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | \
 | 
|---|
| 2484 |                                    FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | \
 | 
|---|
| 2485 |                                    FILE_APPEND_DATA | SYNCHRONIZE)
 | 
|---|
| 2486 | #define FILE_GENERIC_EXECUTE      (STANDARD_RIGHTS_EXECUTE | FILE_EXECUTE | \
 | 
|---|
| 2487 |                                    FILE_READ_ATTRIBUTES | SYNCHRONIZE)
 | 
|---|
| 2488 | 
 | 
|---|
| 2489 | 
 | 
|---|
| 2490 | /* File attribute flags
 | 
|---|
| 2491 |  */
 | 
|---|
| 2492 | #define FILE_SHARE_READ                 0x00000001L
 | 
|---|
| 2493 | #define FILE_SHARE_WRITE                0x00000002L
 | 
|---|
| 2494 | #define FILE_SHARE_DELETE               0x00000004L
 | 
|---|
| 2495 | #define FILE_ATTRIBUTE_READONLY         0x00000001L
 | 
|---|
| 2496 | #define FILE_ATTRIBUTE_HIDDEN           0x00000002L
 | 
|---|
| 2497 | #define FILE_ATTRIBUTE_SYSTEM           0x00000004L
 | 
|---|
| 2498 | #define FILE_ATTRIBUTE_LABEL            0x00000008L  /* Not in Windows API */
 | 
|---|
| 2499 | #define FILE_ATTRIBUTE_DIRECTORY        0x00000010L
 | 
|---|
| 2500 | #define FILE_ATTRIBUTE_ARCHIVE          0x00000020L
 | 
|---|
| 2501 | #define FILE_ATTRIBUTE_NORMAL           0x00000080L
 | 
|---|
| 2502 | #define FILE_ATTRIBUTE_TEMPORARY        0x00000100L
 | 
|---|
| 2503 | #define FILE_ATTRIBUTE_ATOMIC_WRITE     0x00000200L
 | 
|---|
| 2504 | #define FILE_ATTRIBUTE_XACTION_WRITE    0x00000400L
 | 
|---|
| 2505 | #define FILE_ATTRIBUTE_COMPRESSED       0x00000800L
 | 
|---|
| 2506 | #define FILE_ATTRIBUTE_OFFLINE          0x00001000L
 | 
|---|
| 2507 | #define FILE_NOTIFY_CHANGE_FILE_NAME    0x00000001L
 | 
|---|
| 2508 | #define FILE_NOTIFY_CHANGE_DIR_NAME     0x00000002L
 | 
|---|
| 2509 | #define FILE_NOTIFY_CHANGE_ATTRIBUTES   0x00000004L
 | 
|---|
| 2510 | #define FILE_NOTIFY_CHANGE_SIZE         0x00000008L
 | 
|---|
| 2511 | #define FILE_NOTIFY_CHANGE_LAST_WRITE   0x00000010L
 | 
|---|
| 2512 | #define FILE_NOTIFY_CHANGE_LAST_ACCESS  0x00000020L
 | 
|---|
| 2513 | #define FILE_NOTIFY_CHANGE_CREATION     0x00000040L
 | 
|---|
| 2514 | #define FILE_NOTIFY_CHANGE_SECURITY     0x00000100L
 | 
|---|
| 2515 | #define FILE_ACTION_ADDED               0x00000001L
 | 
|---|
| 2516 | #define FILE_ACTION_REMOVED             0x00000002L
 | 
|---|
| 2517 | #define FILE_ACTION_MODIFIED            0x00000003L
 | 
|---|
| 2518 | #define FILE_ACTION_RENAMED_OLD_NAME    0x00000004L
 | 
|---|
| 2519 | #define FILE_ACTION_RENAMED_NEW_NAME    0x00000005L
 | 
|---|
| 2520 | #define MAILSLOT_NO_MESSAGE             ((DWORD)-1)
 | 
|---|
| 2521 | #define MAILSLOT_WAIT_FOREVER           ((DWORD)-1)
 | 
|---|
| 2522 | 
 | 
|---|
| 2523 | /* File alignments (NT) */
 | 
|---|
| 2524 | #define FILE_BYTE_ALIGNMENT             0x00000000
 | 
|---|
| 2525 | #define FILE_WORD_ALIGNMENT             0x00000001
 | 
|---|
| 2526 | #define FILE_LONG_ALIGNMENT             0x00000003
 | 
|---|
| 2527 | #define FILE_QUAD_ALIGNMENT             0x00000007
 | 
|---|
| 2528 | #define FILE_OCTA_ALIGNMENT             0x0000000f
 | 
|---|
| 2529 | #define FILE_32_BYTE_ALIGNMENT          0x0000001f
 | 
|---|
| 2530 | #define FILE_64_BYTE_ALIGNMENT          0x0000003f
 | 
|---|
| 2531 | #define FILE_128_BYTE_ALIGNMENT         0x0000007f
 | 
|---|
| 2532 | #define FILE_256_BYTE_ALIGNMENT         0x000000ff
 | 
|---|
| 2533 | #define FILE_512_BYTE_ALIGNMENT         0x000001ff
 | 
|---|
| 2534 | 
 | 
|---|
| 2535 | #define MAILSLOT_NO_MESSAGE             ((DWORD)-1)
 | 
|---|
| 2536 | #define MAILSLOT_WAIT_FOREVER           ((DWORD)-1)
 | 
|---|
| 2537 | 
 | 
|---|
| 2538 | #define REG_NONE                0       /* no type */
 | 
|---|
| 2539 | #define REG_SZ                  1       /* string type (ASCII) */
 | 
|---|
| 2540 | #define REG_EXPAND_SZ           2       /* string, includes %ENVVAR% (expanded by caller) (ASCII) */
 | 
|---|
| 2541 | #define REG_BINARY              3       /* binary format, callerspecific */
 | 
|---|
| 2542 | /* YES, REG_DWORD == REG_DWORD_LITTLE_ENDIAN */
 | 
|---|
| 2543 | #define REG_DWORD               4       /* DWORD in little endian format */
 | 
|---|
| 2544 | #define REG_DWORD_LITTLE_ENDIAN 4       /* DWORD in little endian format */
 | 
|---|
| 2545 | #define REG_DWORD_BIG_ENDIAN    5       /* DWORD in big endian format  */
 | 
|---|
| 2546 | #define REG_LINK                6       /* symbolic link (UNICODE) */
 | 
|---|
| 2547 | #define REG_MULTI_SZ            7       /* multiple strings, delimited by \0, terminated by \0\0 (ASCII) */
 | 
|---|
| 2548 | #define REG_RESOURCE_LIST       8       /* resource list? huh? */
 | 
|---|
| 2549 | #define REG_FULL_RESOURCE_DESCRIPTOR    9       /* full resource descriptor? huh? */
 | 
|---|
| 2550 | #define REG_RESOURCE_REQUIREMENTS_LIST  10
 | 
|---|
| 2551 | #define REG_QWORD               11      /* QWORD in little endian format */
 | 
|---|
| 2552 | #define REG_QWORD_LITTLE_ENDIAN 11      /* QWORD in little endian format */
 | 
|---|
| 2553 | 
 | 
|---|
| 2554 | /* Registry security values */
 | 
|---|
| 2555 | #define OWNER_SECURITY_INFORMATION  0x00000001
 | 
|---|
| 2556 | #define GROUP_SECURITY_INFORMATION  0x00000002
 | 
|---|
| 2557 | #define DACL_SECURITY_INFORMATION   0x00000004
 | 
|---|
| 2558 | #define SACL_SECURITY_INFORMATION   0x00000008
 | 
|---|
| 2559 | 
 | 
|---|
| 2560 | 
 | 
|---|
| 2561 | #define EVENTLOG_SUCCESS                0x0000
 | 
|---|
| 2562 | #define EVENTLOG_ERROR_TYPE             0x0001
 | 
|---|
| 2563 | #define EVENTLOG_WARNING_TYPE           0x0002
 | 
|---|
| 2564 | #define EVENTLOG_INFORMATION_TYPE       0x0004
 | 
|---|
| 2565 | #define EVENTLOG_AUDIT_SUCCESS          0x0008
 | 
|---|
| 2566 | #define EVENTLOG_AUDIT_FAILURE          0x0010
 | 
|---|
| 2567 | 
 | 
|---|
| 2568 | #define SERVICE_BOOT_START   0x00000000
 | 
|---|
| 2569 | #define SERVICE_SYSTEM_START 0x00000001
 | 
|---|
| 2570 | #define SERVICE_AUTO_START   0x00000002
 | 
|---|
| 2571 | #define SERVICE_DEMAND_START 0x00000003
 | 
|---|
| 2572 | #define SERVICE_DISABLED     0x00000004
 | 
|---|
| 2573 | 
 | 
|---|
| 2574 | #define SERVICE_ERROR_IGNORE   0x00000000
 | 
|---|
| 2575 | #define SERVICE_ERROR_NORMAL   0x00000001
 | 
|---|
| 2576 | #define SERVICE_ERROR_SEVERE   0x00000002
 | 
|---|
| 2577 | #define SERVICE_ERROR_CRITICAL 0x00000003
 | 
|---|
| 2578 | 
 | 
|---|
| 2579 | /* Service types */
 | 
|---|
| 2580 | #define SERVICE_KERNEL_DRIVER      0x00000001
 | 
|---|
| 2581 | #define SERVICE_FILE_SYSTEM_DRIVER 0x00000002
 | 
|---|
| 2582 | #define SERVICE_ADAPTER            0x00000004
 | 
|---|
| 2583 | #define SERVICE_RECOGNIZER_DRIVER  0x00000008
 | 
|---|
| 2584 | 
 | 
|---|
| 2585 | #define SERVICE_DRIVER ( SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | \
 | 
|---|
| 2586 |                          SERVICE_RECOGNIZER_DRIVER )
 | 
|---|
| 2587 | 
 | 
|---|
| 2588 | #define SERVICE_WIN32_OWN_PROCESS   0x00000010
 | 
|---|
| 2589 | #define SERVICE_WIN32_SHARE_PROCESS 0x00000020
 | 
|---|
| 2590 | #define SERVICE_WIN32  (SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS)
 | 
|---|
| 2591 | 
 | 
|---|
| 2592 | #define SERVICE_INTERACTIVE_PROCESS 0x00000100
 | 
|---|
| 2593 | 
 | 
|---|
| 2594 | #define SERVICE_TYPE_ALL ( SERVICE_WIN32 | SERVICE_ADAPTER | \
 | 
|---|
| 2595 |                            SERVICE_DRIVER | SERVICE_INTERACTIVE_PROCESS )
 | 
|---|
| 2596 | 
 | 
|---|
| 2597 | 
 | 
|---|
| 2598 | typedef enum _CM_SERVICE_NODE_TYPE
 | 
|---|
| 2599 | {
 | 
|---|
| 2600 |   DriverType               = SERVICE_KERNEL_DRIVER,
 | 
|---|
| 2601 |   FileSystemType           = SERVICE_FILE_SYSTEM_DRIVER,
 | 
|---|
| 2602 |   Win32ServiceOwnProcess   = SERVICE_WIN32_OWN_PROCESS,
 | 
|---|
| 2603 |   Win32ServiceShareProcess = SERVICE_WIN32_SHARE_PROCESS,
 | 
|---|
| 2604 |   AdapterType              = SERVICE_ADAPTER,
 | 
|---|
| 2605 |   RecognizerType           = SERVICE_RECOGNIZER_DRIVER
 | 
|---|
| 2606 | } SERVICE_NODE_TYPE;
 | 
|---|
| 2607 | 
 | 
|---|
| 2608 | typedef enum _CM_SERVICE_LOAD_TYPE
 | 
|---|
| 2609 | {
 | 
|---|
| 2610 |   BootLoad    = SERVICE_BOOT_START,
 | 
|---|
| 2611 |   SystemLoad  = SERVICE_SYSTEM_START,
 | 
|---|
| 2612 |   AutoLoad    = SERVICE_AUTO_START,
 | 
|---|
| 2613 |   DemandLoad  = SERVICE_DEMAND_START,
 | 
|---|
| 2614 |   DisableLoad = SERVICE_DISABLED
 | 
|---|
| 2615 | } SERVICE_LOAD_TYPE;
 | 
|---|
| 2616 | 
 | 
|---|
| 2617 | typedef enum _CM_ERROR_CONTROL_TYPE
 | 
|---|
| 2618 | {
 | 
|---|
| 2619 |   IgnoreError   = SERVICE_ERROR_IGNORE,
 | 
|---|
| 2620 |   NormalError   = SERVICE_ERROR_NORMAL,
 | 
|---|
| 2621 |   SevereError   = SERVICE_ERROR_SEVERE,
 | 
|---|
| 2622 |   CriticalError = SERVICE_ERROR_CRITICAL
 | 
|---|
| 2623 | } SERVICE_ERROR_TYPE;
 | 
|---|
| 2624 | 
 | 
|---|
| 2625 | /* archive format */
 | 
|---|
| 2626 | 
 | 
|---|
| 2627 | #define IMAGE_ARCHIVE_START_SIZE             8
 | 
|---|
| 2628 | #define IMAGE_ARCHIVE_START                  "!<arch>\n"
 | 
|---|
| 2629 | #define IMAGE_ARCHIVE_END                    "`\n"
 | 
|---|
| 2630 | #define IMAGE_ARCHIVE_PAD                    "\n"
 | 
|---|
| 2631 | #define IMAGE_ARCHIVE_LINKER_MEMBER          "/               "
 | 
|---|
| 2632 | #define IMAGE_ARCHIVE_LONGNAMES_MEMBER       "//              "
 | 
|---|
| 2633 | 
 | 
|---|
| 2634 | typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER
 | 
|---|
| 2635 | {
 | 
|---|
| 2636 |     BYTE     Name[16];
 | 
|---|
| 2637 |     BYTE     Date[12];
 | 
|---|
| 2638 |     BYTE     UserID[6];
 | 
|---|
| 2639 |     BYTE     GroupID[6];
 | 
|---|
| 2640 |     BYTE     Mode[8];
 | 
|---|
| 2641 |     BYTE     Size[10];
 | 
|---|
| 2642 |     BYTE     EndHeader[2];
 | 
|---|
| 2643 | } IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER;
 | 
|---|
| 2644 | 
 | 
|---|
| 2645 | #define IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR 60
 | 
|---|
| 2646 | 
 | 
|---|
| 2647 | typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR
 | 
|---|
| 2648 | {
 | 
|---|
| 2649 |     DWORD   TimeDateStamp;
 | 
|---|
| 2650 |     WORD    OffsetModuleName;
 | 
|---|
| 2651 |     WORD    NumberOfModuleForwarderRefs;
 | 
|---|
| 2652 | /* Array of zero or more IMAGE_BOUND_FORWARDER_REF follows */
 | 
|---|
| 2653 | } IMAGE_BOUND_IMPORT_DESCRIPTOR,  *PIMAGE_BOUND_IMPORT_DESCRIPTOR;
 | 
|---|
| 2654 | 
 | 
|---|
| 2655 | typedef struct _IMAGE_BOUND_FORWARDER_REF
 | 
|---|
| 2656 | {
 | 
|---|
| 2657 |     DWORD   TimeDateStamp;
 | 
|---|
| 2658 |     WORD    OffsetModuleName;
 | 
|---|
| 2659 |     WORD    Reserved;
 | 
|---|
| 2660 | } IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF;
 | 
|---|
| 2661 | 
 | 
|---|
| 2662 | #define IMAGE_DEBUG_MISC_EXENAME    1
 | 
|---|
| 2663 | 
 | 
|---|
| 2664 | typedef struct _IMAGE_DEBUG_MISC {
 | 
|---|
| 2665 |     DWORD       DataType;
 | 
|---|
| 2666 |     DWORD       Length;
 | 
|---|
| 2667 |     BYTE        Unicode;
 | 
|---|
| 2668 |     BYTE        Reserved[ 3 ];
 | 
|---|
| 2669 |     BYTE        Data[ 1 ];
 | 
|---|
| 2670 | } IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC;
 | 
|---|
| 2671 | 
 | 
|---|
| 2672 | 
 | 
|---|
| 2673 | #include "pshpack2.h"
 | 
|---|
| 2674 | 
 | 
|---|
| 2675 | typedef struct _IMAGE_SYMBOL {
 | 
|---|
| 2676 |     union {
 | 
|---|
| 2677 |         BYTE    ShortName[8];
 | 
|---|
| 2678 |         struct {
 | 
|---|
| 2679 |             DWORD   Short;
 | 
|---|
| 2680 |             DWORD   Long;
 | 
|---|
| 2681 |         } Name;
 | 
|---|
| 2682 |         DWORD   LongName[2];
 | 
|---|
| 2683 |     } N;
 | 
|---|
| 2684 |     DWORD   Value;
 | 
|---|
| 2685 |     SHORT   SectionNumber;
 | 
|---|
| 2686 |     WORD    Type;
 | 
|---|
| 2687 |     BYTE    StorageClass;
 | 
|---|
| 2688 |     BYTE    NumberOfAuxSymbols;
 | 
|---|
| 2689 | } IMAGE_SYMBOL;
 | 
|---|
| 2690 | typedef IMAGE_SYMBOL *PIMAGE_SYMBOL;
 | 
|---|
| 2691 | 
 | 
|---|
| 2692 | #define IMAGE_SIZEOF_SYMBOL 18
 | 
|---|
| 2693 | 
 | 
|---|
| 2694 | typedef struct _IMAGE_LINENUMBER {
 | 
|---|
| 2695 |     union {
 | 
|---|
| 2696 |         DWORD   SymbolTableIndex;
 | 
|---|
| 2697 |         DWORD   VirtualAddress;
 | 
|---|
| 2698 |     } Type;
 | 
|---|
| 2699 |     WORD    Linenumber;
 | 
|---|
| 2700 | } IMAGE_LINENUMBER;
 | 
|---|
| 2701 | typedef IMAGE_LINENUMBER *PIMAGE_LINENUMBER;
 | 
|---|
| 2702 | 
 | 
|---|
| 2703 | #define IMAGE_SIZEOF_LINENUMBER  6
 | 
|---|
| 2704 | 
 | 
|---|
| 2705 | typedef union _IMAGE_AUX_SYMBOL {
 | 
|---|
| 2706 |     struct {
 | 
|---|
| 2707 |         DWORD    TagIndex;
 | 
|---|
| 2708 |         union {
 | 
|---|
| 2709 |             struct {
 | 
|---|
| 2710 |                 WORD    Linenumber;
 | 
|---|
| 2711 |                 WORD    Size;
 | 
|---|
| 2712 |             } LnSz;
 | 
|---|
| 2713 |            DWORD    TotalSize;
 | 
|---|
| 2714 |         } Misc;
 | 
|---|
| 2715 |         union {
 | 
|---|
| 2716 |             struct {
 | 
|---|
| 2717 |                 DWORD    PointerToLinenumber;
 | 
|---|
| 2718 |                 DWORD    PointerToNextFunction;
 | 
|---|
| 2719 |             } Function;
 | 
|---|
| 2720 |             struct {
 | 
|---|
| 2721 |                 WORD     Dimension[4];
 | 
|---|
| 2722 |             } Array;
 | 
|---|
| 2723 |         } FcnAry;
 | 
|---|
| 2724 |         WORD    TvIndex;
 | 
|---|
| 2725 |     } Sym;
 | 
|---|
| 2726 |     struct {
 | 
|---|
| 2727 |         BYTE    Name[IMAGE_SIZEOF_SYMBOL];
 | 
|---|
| 2728 |     } File;
 | 
|---|
| 2729 |     struct {
 | 
|---|
| 2730 |         DWORD   Length;
 | 
|---|
| 2731 |         WORD    NumberOfRelocations;
 | 
|---|
| 2732 |         WORD    NumberOfLinenumbers;
 | 
|---|
| 2733 |         DWORD   CheckSum;
 | 
|---|
| 2734 |         SHORT   Number;
 | 
|---|
| 2735 |         BYTE    Selection;
 | 
|---|
| 2736 |     } Section;
 | 
|---|
| 2737 | } IMAGE_AUX_SYMBOL;
 | 
|---|
| 2738 | typedef IMAGE_AUX_SYMBOL *PIMAGE_AUX_SYMBOL;
 | 
|---|
| 2739 | 
 | 
|---|
| 2740 | #define IMAGE_SIZEOF_AUX_SYMBOL 18
 | 
|---|
| 2741 | 
 | 
|---|
| 2742 | #include "poppack.h"
 | 
|---|
| 2743 | 
 | 
|---|
| 2744 | //#include "guiddef.h"
 | 
|---|
| 2745 | 
 | 
|---|
| 2746 | typedef struct _RTL_CRITICAL_SECTION_DEBUG
 | 
|---|
| 2747 | {
 | 
|---|
| 2748 |   WORD   Type;
 | 
|---|
| 2749 |   WORD   CreatorBackTraceIndex;
 | 
|---|
| 2750 |   struct _RTL_CRITICAL_SECTION *CriticalSection;
 | 
|---|
| 2751 |   LIST_ENTRY ProcessLocksList;
 | 
|---|
| 2752 |   DWORD EntryCount;
 | 
|---|
| 2753 |   DWORD ContentionCount;
 | 
|---|
| 2754 |   DWORD Spare[ 2 ];
 | 
|---|
| 2755 | } RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG;
 | 
|---|
| 2756 | 
 | 
|---|
| 2757 | typedef struct _RTL_CRITICAL_SECTION {
 | 
|---|
| 2758 |     PRTL_CRITICAL_SECTION_DEBUG DebugInfo;
 | 
|---|
| 2759 |     LONG LockCount;
 | 
|---|
| 2760 |     LONG RecursionCount;
 | 
|---|
| 2761 |     HANDLE OwningThread;
 | 
|---|
| 2762 |     HANDLE LockSemaphore;
 | 
|---|
| 2763 |     ULONG_PTR SpinCount;
 | 
|---|
| 2764 | }  RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
 | 
|---|
| 2765 | 
 | 
|---|
| 2766 | #include <peexe.h>
 | 
|---|
| 2767 | 
 | 
|---|
| 2768 | #include "pshpack2.h"
 | 
|---|
| 2769 | 
 | 
|---|
| 2770 | typedef struct _IMAGE_RELOCATION
 | 
|---|
| 2771 | {
 | 
|---|
| 2772 |     union {
 | 
|---|
| 2773 |         DWORD   VirtualAddress;
 | 
|---|
| 2774 |         DWORD   RelocCount;
 | 
|---|
| 2775 |     } DUMMYUNIONNAME;
 | 
|---|
| 2776 |     DWORD   SymbolTableIndex;
 | 
|---|
| 2777 |     WORD    Type;
 | 
|---|
| 2778 | } IMAGE_RELOCATION, *PIMAGE_RELOCATION;
 | 
|---|
| 2779 | 
 | 
|---|
| 2780 | #include "poppack.h"
 | 
|---|
| 2781 | 
 | 
|---|
| 2782 | typedef struct _NT_TIB
 | 
|---|
| 2783 | {
 | 
|---|
| 2784 |         struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList;
 | 
|---|
| 2785 |         PVOID StackBase;
 | 
|---|
| 2786 |         PVOID StackLimit;
 | 
|---|
| 2787 |         PVOID SubSystemTib;
 | 
|---|
| 2788 |         union {
 | 
|---|
| 2789 |           PVOID FiberData;
 | 
|---|
| 2790 |           DWORD Version;
 | 
|---|
| 2791 |         } DUMMYUNIONNAME;
 | 
|---|
| 2792 |         PVOID ArbitraryUserPointer;
 | 
|---|
| 2793 |         struct _NT_TIB *Self;
 | 
|---|
| 2794 | } NT_TIB, *PNT_TIB;
 | 
|---|
| 2795 | 
 | 
|---|
| 2796 | typedef struct _MEMORY_BASIC_INFORMATION
 | 
|---|
| 2797 | {
 | 
|---|
| 2798 |     LPVOID   BaseAddress;
 | 
|---|
| 2799 |     LPVOID   AllocationBase;
 | 
|---|
| 2800 |     DWORD    AllocationProtect;
 | 
|---|
| 2801 |     DWORD    RegionSize;
 | 
|---|
| 2802 |     DWORD    State;
 | 
|---|
| 2803 |     DWORD    Protect;
 | 
|---|
| 2804 |     DWORD    Type;
 | 
|---|
| 2805 | } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION,*PMEMORY_BASIC_INFORMATION;
 | 
|---|
| 2806 | 
 | 
|---|
| 2807 | #ifdef __IBMC__
 | 
|---|
| 2808 | typedef void (* __stdcall WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
 | 
|---|
| 2809 | #else
 | 
|---|
| 2810 | typedef void (__stdcall *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
 | 
|---|
| 2811 | #endif
 | 
|---|
| 2812 | 
 | 
|---|
| 2813 | #define REG_QWORD               11      /* QWORD in little endian format */
 | 
|---|
| 2814 | 
 | 
|---|
| 2815 | #define DECLSPEC_NORETURN
 | 
|---|
| 2816 | 
 | 
|---|
| 2817 | typedef struct _QUOTA_LIMITS {
 | 
|---|
| 2818 |     DWORD PagedPoolLimit;
 | 
|---|
| 2819 |     DWORD NonPagedPoolLimit;
 | 
|---|
| 2820 |     DWORD MinimumWorkingSetSize;
 | 
|---|
| 2821 |     DWORD MaximumWorkingSetSize;
 | 
|---|
| 2822 |     DWORD PagefileLimit;
 | 
|---|
| 2823 |     LARGE_INTEGER TimeLimit;
 | 
|---|
| 2824 | } QUOTA_LIMITS, *PQUOTA_LIMITS;
 | 
|---|
| 2825 | 
 | 
|---|
| 2826 | #endif
 | 
|---|