11 #define LAST_WRITE_RIP_MASK ((1ULL << 23) - 1) 48 #endif // _HOOK_PTWH_H_
#define INT_STATUS_SUCCESS
DWORD WrittenMask
Bit mask indicating which bytes inside the page-table entry have been written.
int INTSTATUS
The status data type.
INTSTATUS IntHookPtwEmulateWrite(QWORD Address)
Emulate a write that took place on page table entry at Address.
struct _HOOK_PTEWS HOOK_PTEWS
QWORD CurEntry
Current page-table entry value.
DWORD LastWriteRip
Last RIP that wrote this entry (low 23 bits only).
struct _HOOK_PTEWS * PHOOK_PTEWS
DWORD LastWriteSize
The size of the last write (1 == 8 bytes, 0 == 4 bytes).
INTSTATUS IntHookPtwProcessWrite(PHOOK_PTEWS WriteState, QWORD Address, BYTE EntrySize, QWORD *OldValue, QWORD *NewValue)
Processes a page-table write, returning the old and the new page-table entry value.