---
name: "VirtualLock"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VirtualLock"
---

# VirtualLock(3w)

## NAME

**VirtualLock** (KERNEL32.@)

## SYNOPSIS

BOOL VirtualLock\
  (\
   LPVOID *addr*,\
   SIZE\_T *size*\
  )

## DESCRIPTION

Locks the specified region of virtual address space.

## PARAMS

*addr* **\[In\]**  Address of first byte of range to lock.

*size* **\[In\]**  Number of bytes in range to lock.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**.

## NOTES

Always returns **TRUE**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/virtual.c"**.
