HyperDbg Debugger
Loading...
Searching...
No Matches
BasicTypes.h
Go to the documentation of this file.
1
12#pragma once
13
14#pragma warning(disable : 4201) // Suppress nameless struct/union warning
15
17// Basic Datatypes //
19
20typedef unsigned long long QWORD;
21typedef unsigned __int64 UINT64, *PUINT64;
22typedef unsigned long DWORD;
23typedef int BOOL;
24typedef unsigned char BYTE;
25typedef unsigned short WORD;
26typedef int INT;
27typedef unsigned int UINT;
28typedef unsigned int * PUINT;
29typedef unsigned __int64 ULONG64, *PULONG64;
30typedef unsigned __int64 DWORD64, *PDWORD64;
31typedef char CHAR;
32typedef wchar_t WCHAR;
33#define VOID void
34
35typedef unsigned char UCHAR;
36typedef unsigned short USHORT;
37typedef unsigned long ULONG;
38
39typedef UCHAR BOOLEAN; // winnt
40typedef BOOLEAN * PBOOLEAN; // winnt
41
42typedef signed char INT8, *PINT8;
43typedef signed short INT16, *PINT16;
44typedef signed int INT32, *PINT32;
45typedef signed __int64 INT64, *PINT64;
46typedef unsigned char UINT8, *PUINT8;
47typedef unsigned short UINT16, *PUINT16;
48typedef unsigned int UINT32, *PUINT32;
49typedef unsigned __int64 UINT64, *PUINT64;
50
51#define NULL_ZERO 0
52#define NULL64_ZERO 0ull
53
54#define FALSE 0
55#define TRUE 1
56
57#define UPPER_56_BITS 0xffffffffffffff00
58#define UPPER_48_BITS 0xffffffffffff0000
59#define UPPER_32_BITS 0xffffffff00000000
60#define LOWER_32_BITS 0x00000000ffffffff
61#define LOWER_16_BITS 0x000000000000ffff
62#define LOWER_8_BITS 0x00000000000000ff
63#define SECOND_LOWER_8_BITS 0x000000000000ff00
64#define UPPER_48_BITS_AND_LOWER_8_BITS 0xffffffffffff00ff
65
66//
67// DO NOT FUCKING TOUCH THIS STRUCTURE WITHOUT COORDINATION WITH SINA
68//
69typedef struct GUEST_REGS
70{
71 //
72 // DO NOT FUCKING TOUCH THIS STRUCTURE WITHOUT COORDINATION WITH SINA
73 //
74
75 UINT64 rax; // 0x00
76 UINT64 rcx; // 0x08
77 UINT64 rdx; // 0x10
78 UINT64 rbx; // 0x18
79 UINT64 rsp; // 0x20
80 UINT64 rbp; // 0x28
81 UINT64 rsi; // 0x30
82 UINT64 rdi; // 0x38
83 UINT64 r8; // 0x40
84 UINT64 r9; // 0x48
85 UINT64 r10; // 0x50
86 UINT64 r11; // 0x58
87 UINT64 r12; // 0x60
88 UINT64 r13; // 0x68
89 UINT64 r14; // 0x70
90 UINT64 r15; // 0x78
91
92 //
93 // DO NOT FUCKING TOUCH THIS STRUCTURE WITHOUT COORDINATION WITH SINA
94 //
95
97
113
124
129typedef struct _CR3_TYPE
130{
131 union
132 {
134
135 struct
136 {
143 };
unsigned char * PUINT8
Definition BasicTypes.h:46
int BOOL
Definition BasicTypes.h:23
unsigned short UINT16
Definition BasicTypes.h:47
signed int INT32
Definition BasicTypes.h:44
unsigned short WORD
Definition BasicTypes.h:25
struct GUEST_EXTRA_REGISTERS * PGUEST_EXTRA_REGISTERS
UCHAR BOOLEAN
Definition BasicTypes.h:39
struct GUEST_REGS * PGUEST_REGS
signed char * PINT8
Definition BasicTypes.h:42
signed short INT16
Definition BasicTypes.h:43
struct _SCRIPT_ENGINE_VARIABLES_LIST SCRIPT_ENGINE_VARIABLES_LIST
List of different variables.
unsigned int UINT
Definition BasicTypes.h:27
int INT
Definition BasicTypes.h:26
unsigned char BYTE
Definition BasicTypes.h:24
unsigned char UCHAR
Definition BasicTypes.h:35
unsigned short USHORT
Definition BasicTypes.h:36
struct _SCRIPT_ENGINE_VARIABLES_LIST * PSCRIPT_ENGINE_VARIABLES_LIST
unsigned __int64 * PULONG64
Definition BasicTypes.h:29
BOOLEAN * PBOOLEAN
Definition BasicTypes.h:40
struct GUEST_REGS GUEST_REGS
unsigned long long QWORD
Definition BasicTypes.h:20
signed __int64 INT64
Definition BasicTypes.h:45
signed char INT8
Definition BasicTypes.h:42
unsigned __int64 ULONG64
Definition BasicTypes.h:29
signed int * PINT32
Definition BasicTypes.h:44
unsigned int * PUINT32
Definition BasicTypes.h:48
signed __int64 * PINT64
Definition BasicTypes.h:45
unsigned int * PUINT
Definition BasicTypes.h:28
unsigned __int64 DWORD64
Definition BasicTypes.h:30
wchar_t WCHAR
Definition BasicTypes.h:32
unsigned __int64 UINT64
Definition BasicTypes.h:21
struct _CR3_TYPE CR3_TYPE
CR3 Structure.
unsigned short * PUINT16
Definition BasicTypes.h:47
unsigned char UINT8
Definition BasicTypes.h:46
signed short * PINT16
Definition BasicTypes.h:43
unsigned long DWORD
Definition BasicTypes.h:22
unsigned __int64 * PUINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
unsigned __int64 * PDWORD64
Definition BasicTypes.h:30
unsigned long ULONG
Definition BasicTypes.h:37
struct GUEST_EXTRA_REGISTERS GUEST_EXTRA_REGISTERS
struct for extra registers
struct _CR3_TYPE * PCR3_TYPE
CR3 Structure.
Definition BasicTypes.h:130
UINT64 Flags
Definition BasicTypes.h:133
UINT64 Pcid
Definition BasicTypes.h:137
UINT64 PcidInvalidate
Definition BasicTypes.h:141
UINT64 Reserved1
Definition BasicTypes.h:139
struct _CR3_TYPE::@56::@58 Fields
UINT64 PageFrameNumber
Definition BasicTypes.h:138
UINT64 Reserved_2
Definition BasicTypes.h:140
List of different variables.
Definition BasicTypes.h:118
UINT64 * GlobalVariablesList
Definition BasicTypes.h:120
UINT64 * LocalVariablesList
Definition BasicTypes.h:121
UINT64 * TempList
Definition BasicTypes.h:119
struct for extra registers
Definition BasicTypes.h:103
UINT16 FS
Definition BasicTypes.h:106
UINT16 ES
Definition BasicTypes.h:108
UINT64 RFLAGS
Definition BasicTypes.h:110
UINT64 RIP
Definition BasicTypes.h:111
UINT16 DS
Definition BasicTypes.h:105
UINT16 SS
Definition BasicTypes.h:109
UINT16 GS
Definition BasicTypes.h:107
UINT16 CS
Definition BasicTypes.h:104
Definition BasicTypes.h:70
UINT64 rsp
Definition BasicTypes.h:79
UINT64 r14
Definition BasicTypes.h:89
UINT64 r15
Definition BasicTypes.h:90
UINT64 rdi
Definition BasicTypes.h:82
UINT64 rax
Definition BasicTypes.h:75
UINT64 r12
Definition BasicTypes.h:87
UINT64 r13
Definition BasicTypes.h:88
UINT64 r9
Definition BasicTypes.h:84
UINT64 r8
Definition BasicTypes.h:83
UINT64 rbp
Definition BasicTypes.h:80
UINT64 rbx
Definition BasicTypes.h:78
UINT64 r10
Definition BasicTypes.h:85
UINT64 rcx
Definition BasicTypes.h:76
UINT64 rsi
Definition BasicTypes.h:81
UINT64 r11
Definition BasicTypes.h:86
UINT64 rdx
Definition BasicTypes.h:77