mirror-ac/driver/pool.h
lhodges1 af45bc923f e
2023-09-02 23:47:15 +10:00

42 lines
No EOL
838 B
C

#ifndef POOL_H
#define POOL_H
#include <ntifs.h>
#include "common.h"
#define REPORT_INVALID_PROCESS_BUFFER_SIZE 4096
#define PAGE_BASE_SIZE 0x1000
#define POOL_TAG_SIZE 0x004
#define PML4_ENTRY_COUNT 512
#define PDPT_ENTRY_COUNT 512
#define PD_ENTRY_COUNT 512
#define PT_ENTRY_COUNT 512
#define PROCESS_OBJECT_ALLOCATION_MARGIN 0x90
/* SIZE_2 = first alloc + 0x10 */
#define WIN_PROCESS_ALLOCATION_SIZE 0xcf0
#define WIN_PROCESS_ALLOCATION_SIZE_2 0xd00
#define CHUNK_SIZE 16
typedef struct _INVALID_PROCESS_ALLOCATION_REPORT
{
INT report_code;
CHAR process[ REPORT_INVALID_PROCESS_BUFFER_SIZE ];
}INVALID_PROCESS_ALLOCATION_REPORT, *PINVALID_PROCESS_ALLOCATION_REPORT;
NTSTATUS FindUnlinkedProcesses(
_In_ PIRP Irp
);
VOID GetPsActiveProcessHead(
_In_ PUINT64 Address
);
PKDDEBUGGER_DATA64 GetGlobalDebuggerData();
#endif