summaryrefslogtreecommitdiff
path: root/crates/windows-kernel-sys/src/wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'crates/windows-kernel-sys/src/wrapper.h')
-rw-r--r--crates/windows-kernel-sys/src/wrapper.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/crates/windows-kernel-sys/src/wrapper.h b/crates/windows-kernel-sys/src/wrapper.h
new file mode 100644
index 0000000..1234601
--- /dev/null
+++ b/crates/windows-kernel-sys/src/wrapper.h
@@ -0,0 +1,63 @@
+#define _AMD64_
+
+#include "ntdef.h"
+#include "ntstatus.h"
+
+typedef ULONG_PTR _EX_PUSH_LOCK;
+typedef ULONG_PTR EX_PUSH_LOCK;
+typedef ULONG_PTR *PEX_PUSH_LOCK;
+
+typedef union _KGDTENTRY64
+{
+ struct
+ {
+ unsigned short LimitLow;
+ unsigned short BaseLow;
+ union
+ {
+ struct
+ {
+ unsigned char BaseMiddle;
+ unsigned char Flags1;
+ unsigned char Flags2;
+ unsigned char BaseHigh;
+ } Bytes;
+ struct
+ {
+ unsigned long BaseMiddle : 8;
+ unsigned long Type : 5;
+ unsigned long Dpl : 2;
+ unsigned long Present : 1;
+ unsigned long LimitHigh : 4;
+ unsigned long System : 1;
+ unsigned long LongMode : 1;
+ unsigned long DefaultBig : 1;
+ unsigned long Granularity : 1;
+ unsigned long BaseHigh : 8;
+ } Bits;
+ };
+ unsigned long BaseUpper;
+ unsigned long MustBeZero;
+ };
+ unsigned __int64 Alignment;
+} KGDTENTRY64, *PKGDTENTRY64;
+
+typedef union _KIDTENTRY64
+{
+ struct
+ {
+ unsigned short OffsetLow;
+ unsigned short Selector;
+ unsigned short IstIndex : 3;
+ unsigned short Reserved0 : 5;
+ unsigned short Type : 5;
+ unsigned short Dpl : 2;
+ unsigned short Present : 1;
+ unsigned short OffsetMiddle;
+ unsigned long OffsetHigh;
+ unsigned long Reserved1;
+ };
+ unsigned __int64 Alignment;
+} KIDTENTRY64, *PKIDTENTRY64;
+
+#include "ntifs.h"