-
Notifications
You must be signed in to change notification settings - Fork 10
/
interface.h
82 lines (72 loc) · 1.55 KB
/
interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
typedef enum _request_codes
{
request_free = 0x109,
request_base = 0x119,
request_read = 0x129,
request_write = 0x139,
request_allocate = 0x149,
request_expose = 0x159,
request_swap = 0x169,
request_pattern = 0x179,
request_success = 0x91a,
request_unique = 0x92b,
request_unload = 0x93c,
}request_codes, *prequest_codes;
typedef struct _unload_request
{
bool *buffer;
}unload_request, *punload_request;
typedef struct _read_request {
uint32_t pid;
uintptr_t address;
void *buffer;
size_t size;
} read_request, *pread_request;
typedef struct _write_request {
uint32_t pid;
uintptr_t address;
void *buffer;
size_t size;
} write_request, *pwrite_request;
typedef struct _base_request {
uint32_t pid;
uintptr_t handle;
WCHAR name[260];
} base_request, *pbase_request;
typedef struct _swap_request
{
uint32_t pid;
uintptr_t dst;
uintptr_t src;
uintptr_t old;
}swap_request, *pswap_request;
typedef struct _free_request
{
void *address;
uintptr_t mdl;
}free_request, *pfree_request;
typedef struct _allocate_request
{
void *address;
uintptr_t mdl;
size_t size;
}allocate_request, *pallocate_request;
typedef struct _expose_request
{
void *address;
size_t size;
uint32_t pid;
}expose_request, *pexpose_request;
typedef struct _pattern_request
{
int pid;
uintptr_t base;
char signature[260];
uintptr_t address;
}pattern_request, *ppattern_request;
typedef struct _request_data
{
uint32_t unique;
request_codes code;
void *data;
}request_data, *prequest_data;