mirror of
https://github.com/decompals/wibo.git
synced 2025-12-20 18:29:11 +00:00
VirtualQuery rework
This commit is contained in:
@@ -3,36 +3,6 @@
|
||||
#include "common.h"
|
||||
#include "minwinbase.h"
|
||||
|
||||
// Allocation type flags
|
||||
constexpr DWORD MEM_COMMIT = 0x00001000;
|
||||
constexpr DWORD MEM_RESERVE = 0x00002000;
|
||||
constexpr DWORD MEM_DECOMMIT = 0x00004000;
|
||||
constexpr DWORD MEM_RELEASE = 0x00008000;
|
||||
constexpr DWORD MEM_RESET = 0x00080000;
|
||||
constexpr DWORD MEM_RESET_UNDO = 0x01000000;
|
||||
constexpr DWORD MEM_TOP_DOWN = 0x00100000;
|
||||
constexpr DWORD MEM_WRITE_WATCH = 0x00200000;
|
||||
constexpr DWORD MEM_PHYSICAL = 0x00400000;
|
||||
constexpr DWORD MEM_PRIVATE = 0x00020000;
|
||||
constexpr DWORD MEM_LARGE_PAGES = 0x20000000;
|
||||
constexpr DWORD MEM_COALESCE_PLACEHOLDERS = 0x00000001;
|
||||
constexpr DWORD MEM_PRESERVE_PLACEHOLDER = 0x00000002;
|
||||
|
||||
// Page protection constants
|
||||
constexpr DWORD PAGE_NOACCESS = 0x01;
|
||||
constexpr DWORD PAGE_READONLY = 0x02;
|
||||
constexpr DWORD PAGE_READWRITE = 0x04;
|
||||
constexpr DWORD PAGE_WRITECOPY = 0x08;
|
||||
constexpr DWORD PAGE_EXECUTE = 0x10;
|
||||
constexpr DWORD PAGE_EXECUTE_READ = 0x20;
|
||||
constexpr DWORD PAGE_EXECUTE_READWRITE = 0x40;
|
||||
constexpr DWORD PAGE_EXECUTE_WRITECOPY = 0x80;
|
||||
|
||||
constexpr DWORD FILE_MAP_COPY = 0x00000001;
|
||||
constexpr DWORD FILE_MAP_WRITE = 0x00000002;
|
||||
constexpr DWORD FILE_MAP_READ = 0x00000004;
|
||||
constexpr DWORD FILE_MAP_EXECUTE = 0x00000020;
|
||||
|
||||
struct MEMORY_BASIC_INFORMATION {
|
||||
PVOID BaseAddress;
|
||||
PVOID AllocationBase;
|
||||
|
||||
Reference in New Issue
Block a user