Undocumented functions of NTDLL

2OOO, 3 December


NtLockVirtualMemory
NtLockVirtualMemory

NTSYSAPI 
NTSTATUS
NTAPI

NtLockVirtualMemory(
IN HANDLE ProcessHandle, IN PVOID *BaseAddress, IN OUT PULONG NumberOfBytesToLock, IN ULONG LockOption );


LockOption
Can be one or both of following values:

        #define VM_LOCK_1                0x0001   // This is used, when calling KERNEL32.DLL VirtualLock routine
    #define VM_LOCK_2                0x0002   // This require SE_LOCK_MEMORY_NAME privilege




Documented by:
Tomasz Nowak
Reactos



Requirements:
Library: ntdll.lib
Privilege: SE_LOCK_MEMORY_NAME


See also:
NtAllocateVirtualMemory
NtFreeVirtualMemory
NtUnlockVirtualMemory