VirtualLock function kernel32

int VirtualLock(
  1. Pointer<NativeType> lpAddress,
  2. int dwSize
)

Locks the specified region of the process's virtual address space into physical memory, ensuring that subsequent access to the region will not incur a page fault.

BOOL VirtualLock(
  LPVOID lpAddress,
  SIZE_T dwSize
);

Implementation

int VirtualLock(Pointer lpAddress, int dwSize) =>
    _VirtualLock(lpAddress, dwSize);