2OOO, 3 December
NTSYSAPI NTSTATUS NTAPI
NtAllocateVirtualMemory(
IN HANDLE ProcessHandle, IN OUT PVOID *BaseAddress, IN ULONG ZeroBits, IN OUT PULONG RegionSize, IN ULONG AllocationType, IN ULONG Protect );
Handle to Process Object opened with PROCESS_VM_OPERATION access.
If not zero, system tries to allocate virtual memory block on this virtual address. If BaseAddress is zero, system use first free virtual location.
Can be MEM_RESERVE or MEM_COMMIT.
One or combination of PAGE_*** attributes.