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

# VirtualQuery(3w)

## NAME

**VirtualQuery** (KERNEL32.@)

## SYNOPSIS

SIZE\_T VirtualQuery\
  (\
   LPCVOID                   *addr*,\
   PMEMORY\_BASIC\_INFORMATION *info*,\
   SIZE\_T                    *len*\
  )

## DESCRIPTION

Provides information about a range of pages in virtual address space.

## PARAMS

*addr* **\[In\]**  Address of region.

*info* **\[Out\]**  Address of information buffer.

*len* **\[In\]**  Size of buffer.

## RETURNS

Number of bytes returned in information buffer or **0** if *addr* \>= 0xc0000000 (kernel space).

## IMPLEMENTATION

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

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