2 #include <psdk/ntverp.h>
4 /* DDK/IFS/NDK Headers */
18 // FIXME: where to put this?
19 typedef struct _FIBER
/* Field offsets: */
21 /* this must be the first field */
22 PVOID Parameter
; /* 0x00 0x00 */
23 struct _EXCEPTION_REGISTRATION_RECORD
* ExceptionList
; /* 0x04 0x08 */
24 PVOID StackBase
; /* 0x08 0x10 */
25 PVOID StackLimit
; /* 0x0C 0x18 */
26 PVOID DeallocationStack
; /* 0x10 0x20 */
27 CONTEXT Context
; /* 0x14 0x28 */
28 ULONG GuaranteedStackBytes
; /* 0x2E0 */
29 PVOID FlsData
; /* 0x2E4 */
30 PVOID ActivationContextStack
; /* 0x2E8 */
42 #define TYPE_CONSTANT 2
45 #define RAW(x) {TYPE_RAW, x, 0}
46 #define CONSTANT(name) {TYPE_CONSTANT, #name, (ULONG)name}
47 #define CONSTANT64(name) {TYPE_CONSTANT, #name, (ULONGLONG)name}
48 #define CONSTANTPTR(name) {TYPE_CONSTANT, #name, (ULONG_PTR)name}
49 #define CONSTANTX(name, value) {TYPE_CONSTANT, #name, value}
50 #define OFFSET(name, struct, member) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member)}
51 #define RELOFFSET(name, struct, member, to) {TYPE_CONSTANT, #name, FIELD_OFFSET(struct, member) - FIELD_OFFSET(struct, to)}
52 #define SIZE(name, struct) {TYPE_CONSTANT, #name, sizeof(struct)}
53 #define HEADER(x) {TYPE_HEADER, x, 0}
56 #pragma section(".asmdef")
57 __declspec(allocate(".asmdef"))
58 #elif defined(__GNUC__)
59 __attribute__ ((section(".asmdef")))
61 #error Your compiler is not supported.
66 /* PORTABLE CONSTANTS ********************************************************/
67 #include "ksx.template.h"
69 /* ARCHITECTURE SPECIFIC CONTSTANTS ******************************************/
71 #include "ks386.template.h"
72 #elif defined(_M_AMD64)
73 #include "ksamd64.template.h"
80 LONG NTAPI
DummyEntry(HANDLE hinstDLL
, ULONG fdwReason
, PVOID lpvReserved
)