
Untitled
By: a guest on
Jul 10th, 2012 | syntax:
C | size: 0.47 KB | hits: 19 | expires: Never
ULONG NTAPI hNtQueryVirtualMemory(HANDLE ProcessHandle, PVOID BaseAddress, MEMORY_INFORMATION_CLASS MemoryInformationClass, PVOID MemoryInformation, ULONG MemoryInformationLength, PULONG ReturnLength) {
removeJMPHook(&hiNtQueryVirtualMemory);
ULONG x = NtQueryVirtualMemory(ProcessHandle, BaseAddress, MemoryInformationClass, MemoryInformation, MemoryInformationLength, ReturnLength);
setJMPHook(&hiNtQueryVirtualMemory, hNtQueryVirtualMemory);
return x;
}