Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function provides information about a range of pages in the virtual address space of the calling process.
DWORD VirtualQuery( LPCVOID lpAddress , PMEMORY_BASIC_INFORMATION lpBuffer , DWORD dwLength );
Parameters
Return Values
The actual number of bytes returned in the information buffer indicates success.
Remarks
VirtualQueryprovides information about a region of consecutive pages beginning at a specified address that share the following attributes:
The VirtualQueryfunction determines the attributes of the first page in the region and then scans subsequent pages until it scans the entire range of pages or until it encounters a page with a nonmatching set of attributes. The function returns the attributes and the size, in bytes, of the region of pages with matching attributes. For example, if there is a 20 MB region of free memory and VirtualQueryis called on a page that is 10 MB into the region, the function will obtain a state of MEM_FREE and a size of 10 MB.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Winbase.h | Coredll.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
GetSystemInfo, VirtualAlloc, MEMORY_BASIC_INFORMATION