102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
win32_memory.h
Go to the documentation of this file.
1
/* Recovered declarations; ABI and original layout preserved. */
2
#ifndef PCDOGS_PLATFORM_WIN32_MEMORY_H
3
#define PCDOGS_PLATFORM_WIN32_MEMORY_H
4
#include "
pcdogs/platform/sdk.h
"
5
6
typedef
uint32_t
HEAP_FLAGS
;
7
8
#ifndef HEAP_NONE
9
#define HEAP_NONE ((uint32_t)(0x0))
10
#endif
11
#ifndef HEAP_NO_SERIALIZE
12
#define HEAP_NO_SERIALIZE ((uint32_t)(0x1))
13
#endif
14
#ifndef HEAP_GROWABLE
15
#define HEAP_GROWABLE ((uint32_t)(0x2))
16
#endif
17
#ifndef HEAP_GENERATE_EXCEPTIONS
18
#define HEAP_GENERATE_EXCEPTIONS ((uint32_t)(0x4))
19
#endif
20
#ifndef HEAP_ZERO_MEMORY
21
#define HEAP_ZERO_MEMORY ((uint32_t)(0x8))
22
#endif
23
#ifndef HEAP_REALLOC_IN_PLACE_ONLY
24
#define HEAP_REALLOC_IN_PLACE_ONLY ((uint32_t)(0x10))
25
#endif
26
#ifndef HEAP_TAIL_CHECKING_ENABLED
27
#define HEAP_TAIL_CHECKING_ENABLED ((uint32_t)(0x20))
28
#endif
29
#ifndef HEAP_FREE_CHECKING_ENABLED
30
#define HEAP_FREE_CHECKING_ENABLED ((uint32_t)(0x40))
31
#endif
32
#ifndef HEAP_DISABLE_COALESCE_ON_FREE
33
#define HEAP_DISABLE_COALESCE_ON_FREE ((uint32_t)(0x80))
34
#endif
35
#ifndef HEAP_CREATE_ALIGN_16
36
#define HEAP_CREATE_ALIGN_16 ((uint32_t)(0x10000))
37
#endif
38
#ifndef HEAP_CREATE_ENABLE_TRACING
39
#define HEAP_CREATE_ENABLE_TRACING ((uint32_t)(0x20000))
40
#endif
41
#ifndef HEAP_CREATE_ENABLE_EXECUTE
42
#define HEAP_CREATE_ENABLE_EXECUTE ((uint32_t)(0x40000))
43
#endif
44
#ifndef HEAP_MAXIMUM_TAG
45
#define HEAP_MAXIMUM_TAG ((uint32_t)(0xfff))
46
#endif
47
#ifndef HEAP_PSEUDO_TAG_FLAG
48
#define HEAP_PSEUDO_TAG_FLAG ((uint32_t)(0x8000))
49
#endif
50
#ifndef HEAP_TAG_SHIFT
51
#define HEAP_TAG_SHIFT ((uint32_t)(0x12))
52
#endif
53
#ifndef HEAP_CREATE_SEGMENT_HEAP
54
#define HEAP_CREATE_SEGMENT_HEAP ((uint32_t)(0x100))
55
#endif
56
#ifndef HEAP_CREATE_HARDENED
57
#define HEAP_CREATE_HARDENED ((uint32_t)(0x200))
58
#endif
59
60
_Static_assert
(
sizeof
(
HEAP_FLAGS
) == 4,
"HEAP_FLAGS size"
);
61
62
typedef
uint32_t
LOCAL_ALLOC_FLAGS
;
63
64
#ifndef LHND
65
#define LHND ((uint32_t)(LMEM_MOVEABLE | LMEM_ZEROINIT))
66
#endif
67
#ifndef LMEM_FIXED
68
#define LMEM_FIXED ((uint32_t)(0x0))
69
#endif
70
#ifndef LMEM_MOVEABLE
71
#define LMEM_MOVEABLE ((uint32_t)(0x2))
72
#endif
73
#ifndef LMEM_ZEROINIT
74
#define LMEM_ZEROINIT ((uint32_t)(0x40))
75
#endif
76
#ifndef LPTR
77
#define LPTR ((uint32_t)(LMEM_FIXED | LMEM_ZEROINIT))
78
#endif
79
#ifndef NONZEROLHND
80
#define NONZEROLHND ((uint32_t)(LMEM_MOVEABLE))
81
#endif
82
#ifndef NONZEROLPTR
83
#define NONZEROLPTR ((uint32_t)(LMEM_FIXED))
84
#endif
85
86
_Static_assert
(
sizeof
(
LOCAL_ALLOC_FLAGS
) == 4,
"LOCAL_ALLOC_FLAGS size"
);
87
88
typedef
uint32_t
PAGE_PROTECTION_FLAGS
;
89
90
#ifndef PAGE_NOACCESS
91
#define PAGE_NOACCESS ((uint32_t)(0x1))
92
#endif
93
#ifndef PAGE_READONLY
94
#define PAGE_READONLY ((uint32_t)(0x2))
95
#endif
96
#ifndef PAGE_READWRITE
97
#define PAGE_READWRITE ((uint32_t)(0x4))
98
#endif
99
#ifndef PAGE_WRITECOPY
100
#define PAGE_WRITECOPY ((uint32_t)(0x8))
101
#endif
102
#ifndef PAGE_EXECUTE
103
#define PAGE_EXECUTE ((uint32_t)(0x10))
104
#endif
105
#ifndef PAGE_EXECUTE_READ
106
#define PAGE_EXECUTE_READ ((uint32_t)(0x20))
107
#endif
108
#ifndef PAGE_EXECUTE_READWRITE
109
#define PAGE_EXECUTE_READWRITE ((uint32_t)(0x40))
110
#endif
111
#ifndef PAGE_EXECUTE_WRITECOPY
112
#define PAGE_EXECUTE_WRITECOPY ((uint32_t)(0x80))
113
#endif
114
#ifndef PAGE_GUARD
115
#define PAGE_GUARD ((uint32_t)(0x100))
116
#endif
117
#ifndef PAGE_NOCACHE
118
#define PAGE_NOCACHE ((uint32_t)(0x200))
119
#endif
120
#ifndef PAGE_WRITECOMBINE
121
#define PAGE_WRITECOMBINE ((uint32_t)(0x400))
122
#endif
123
#ifndef PAGE_GRAPHICS_NOACCESS
124
#define PAGE_GRAPHICS_NOACCESS ((uint32_t)(0x800))
125
#endif
126
#ifndef PAGE_GRAPHICS_READONLY
127
#define PAGE_GRAPHICS_READONLY ((uint32_t)(0x1000))
128
#endif
129
#ifndef PAGE_GRAPHICS_READWRITE
130
#define PAGE_GRAPHICS_READWRITE ((uint32_t)(0x2000))
131
#endif
132
#ifndef PAGE_GRAPHICS_EXECUTE
133
#define PAGE_GRAPHICS_EXECUTE ((uint32_t)(0x4000))
134
#endif
135
#ifndef PAGE_GRAPHICS_EXECUTE_READ
136
#define PAGE_GRAPHICS_EXECUTE_READ ((uint32_t)(0x8000))
137
#endif
138
#ifndef PAGE_GRAPHICS_EXECUTE_READWRITE
139
#define PAGE_GRAPHICS_EXECUTE_READWRITE ((uint32_t)(0x10000))
140
#endif
141
#ifndef PAGE_GRAPHICS_COHERENT
142
#define PAGE_GRAPHICS_COHERENT ((uint32_t)(0x20000))
143
#endif
144
#ifndef PAGE_GRAPHICS_NOCACHE
145
#define PAGE_GRAPHICS_NOCACHE ((uint32_t)(0x40000))
146
#endif
147
#ifndef PAGE_ENCLAVE_THREAD_CONTROL
148
#define PAGE_ENCLAVE_THREAD_CONTROL ((uint32_t)(0x80000000))
149
#endif
150
#ifndef PAGE_REVERT_TO_FILE_MAP
151
#define PAGE_REVERT_TO_FILE_MAP ((uint32_t)(0x80000000))
152
#endif
153
#ifndef PAGE_TARGETS_NO_UPDATE
154
#define PAGE_TARGETS_NO_UPDATE ((uint32_t)(0x40000000))
155
#endif
156
#ifndef PAGE_TARGETS_INVALID
157
#define PAGE_TARGETS_INVALID ((uint32_t)(0x40000000))
158
#endif
159
#ifndef PAGE_ENCLAVE_UNVALIDATED
160
#define PAGE_ENCLAVE_UNVALIDATED ((uint32_t)(0x20000000))
161
#endif
162
#ifndef PAGE_ENCLAVE_MASK
163
#define PAGE_ENCLAVE_MASK ((uint32_t)(0x10000000))
164
#endif
165
#ifndef PAGE_ENCLAVE_DECOMMIT
166
#define PAGE_ENCLAVE_DECOMMIT ((uint32_t)(0x10000000))
167
#endif
168
#ifndef PAGE_ENCLAVE_SS_FIRST
169
#define PAGE_ENCLAVE_SS_FIRST ((uint32_t)(0x10000001))
170
#endif
171
#ifndef PAGE_ENCLAVE_SS_REST
172
#define PAGE_ENCLAVE_SS_REST ((uint32_t)(0x10000002))
173
#endif
174
#ifndef SEC_PARTITION_OWNER_HANDLE
175
#define SEC_PARTITION_OWNER_HANDLE ((uint32_t)(0x40000))
176
#endif
177
#ifndef SEC_64K_PAGES
178
#define SEC_64K_PAGES ((uint32_t)(0x80000))
179
#endif
180
#ifndef SEC_FILE
181
#define SEC_FILE ((uint32_t)(0x800000))
182
#endif
183
#ifndef SEC_IMAGE
184
#define SEC_IMAGE ((uint32_t)(0x1000000))
185
#endif
186
#ifndef SEC_PROTECTED_IMAGE
187
#define SEC_PROTECTED_IMAGE ((uint32_t)(0x2000000))
188
#endif
189
#ifndef SEC_RESERVE
190
#define SEC_RESERVE ((uint32_t)(0x4000000))
191
#endif
192
#ifndef SEC_COMMIT
193
#define SEC_COMMIT ((uint32_t)(0x8000000))
194
#endif
195
#ifndef SEC_NOCACHE
196
#define SEC_NOCACHE ((uint32_t)(0x10000000))
197
#endif
198
#ifndef SEC_WRITECOMBINE
199
#define SEC_WRITECOMBINE ((uint32_t)(0x40000000))
200
#endif
201
#ifndef SEC_LARGE_PAGES
202
#define SEC_LARGE_PAGES ((uint32_t)(0x80000000))
203
#endif
204
#ifndef SEC_IMAGE_NO_EXECUTE
205
#define SEC_IMAGE_NO_EXECUTE ((uint32_t)(SEC_IMAGE | SEC_NOCACHE))
206
#endif
207
208
_Static_assert
(
sizeof
(
PAGE_PROTECTION_FLAGS
) == 4,
"PAGE_PROTECTION_FLAGS size"
);
209
210
typedef
uint32_t
VIRTUAL_ALLOCATION_TYPE
;
211
212
#ifndef MEM_COMMIT
213
#define MEM_COMMIT ((uint32_t)(0x1000))
214
#endif
215
#ifndef MEM_RESERVE
216
#define MEM_RESERVE ((uint32_t)(0x2000))
217
#endif
218
#ifndef MEM_RESET
219
#define MEM_RESET ((uint32_t)(0x80000))
220
#endif
221
#ifndef MEM_RESET_UNDO
222
#define MEM_RESET_UNDO ((uint32_t)(0x1000000))
223
#endif
224
#ifndef MEM_REPLACE_PLACEHOLDER
225
#define MEM_REPLACE_PLACEHOLDER ((uint32_t)(0x4000))
226
#endif
227
#ifndef MEM_LARGE_PAGES
228
#define MEM_LARGE_PAGES ((uint32_t)(0x20000000))
229
#endif
230
#ifndef MEM_RESERVE_PLACEHOLDER
231
#define MEM_RESERVE_PLACEHOLDER ((uint32_t)(0x40000))
232
#endif
233
#ifndef MEM_FREE
234
#define MEM_FREE ((uint32_t)(0x10000))
235
#endif
236
237
_Static_assert
(
sizeof
(
VIRTUAL_ALLOCATION_TYPE
) == 4,
"VIRTUAL_ALLOCATION_TYPE size"
);
238
239
typedef
uint32_t
VIRTUAL_FREE_TYPE
;
240
241
#ifndef MEM_DECOMMIT
242
#define MEM_DECOMMIT ((uint32_t)(0x4000))
243
#endif
244
#ifndef MEM_RELEASE
245
#define MEM_RELEASE ((uint32_t)(0x8000))
246
#endif
247
248
_Static_assert
(
sizeof
(
VIRTUAL_FREE_TYPE
) == 4,
"VIRTUAL_FREE_TYPE size"
);
249
250
#endif
/* PCDOGS_PLATFORM_WIN32_MEMORY_H */
sdk.h
VIRTUAL_FREE_TYPE
uint32_t VIRTUAL_FREE_TYPE
Definition
win32_memory.h:239
HEAP_FLAGS
uint32_t HEAP_FLAGS
Definition
win32_memory.h:6
PAGE_PROTECTION_FLAGS
uint32_t PAGE_PROTECTION_FLAGS
Definition
win32_memory.h:88
LOCAL_ALLOC_FLAGS
uint32_t LOCAL_ALLOC_FLAGS
Definition
win32_memory.h:62
VIRTUAL_ALLOCATION_TYPE
uint32_t VIRTUAL_ALLOCATION_TYPE
Definition
win32_memory.h:210
include
pcdogs
platform
win32_memory.h
Generated by
1.17.0