VirtualQueryEx

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function provides information about a range of pages in the virtual address space of the calling process.

Syntax

DWORD VirtualQueryEx(
  HANDLE hProcess,
  LPCVOID lpAddress,
  PMEMORY_BASIC_INFORMATION lpBuffer,
  DWORD dwLength
);

Parameters

  • hProcess
    [in] Handle to the process to query for virtual address space information.
  • lpAddress
    [in] Pointer to the base address of the region of pages to be queried. This value is rounded down to the next page boundary. To determine the size of a page on the host computer, use the GetSystemInfo function.
  • lpBuffer
    [out] Pointer to a MEMORY_BASIC_INFORMATION structure in which information about the specified page range is returned.
  • dwLength
    [in] Specifies the size, in bytes, of the buffer pointed to by the lpBuffer parameter.

Return Value

The number of bytes returned in the information buffer indicates success.

Remarks

For more information about this function, see VirtualQuery.

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Memory Management Functions
VirtualAlloc
GetSystemInfo
MEMORY_BASIC_INFORMATION