2OOO, 5 December
NTSYSAPI NTSTATUS NTAPI
NtProtectVirtualMemory(
IN HANDLE ProcessHandle, IN OUT PVOID *BaseAddress, IN OUT PULONG NumberOfBytesToProtect, IN ULONG NewAccessProtection, OUT PULONG OldAccessProtection );
Handle to Process Object opened with PROCESS_VM_OPERATION access.
Pointer to base address to protect. Protection will change on all page containing specified address. On output, BaseAddress will point to page start address.
Pointer to size of region to protect. On output will be round to page size (4KB).
One or some of PAGE_... attributess.
Receive previous protection.