The VirtualQuery function provides information about a range of pages in the virtual address space of the calling process.
DWORD VirtualQuery(
LPCVOID lpAddress, |
// address of region |
PMEMORY_BASIC_INFORMATION lpBuffer, |
// address of information buffer |
DWORD dwLength |
// size of buffer |
); |
The return value is the actual number of bytes returned in the information buffer.
VirtualQuery provides information about a region of consecutive pages beginning at a specified address that share the following attributes:
The function 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 40 megabyte (MB) region of free memory, and VirtualQuery is called on a page that is 10 MB into the region, the function will obtain a state of MEM_FREE and a size of 30 MB.
This function reports on a region of pages in the memory of the calling process, and the VirtualQueryEx function reports on a region of pages in the memory of a specified process.
GetSystemInfo, MEMORY_BASIC_INFORMATION, VirtualQueryEx
file: /Techref/os/win/api/win32/func/src/f90_15.htm, 4KB, , updated: 2000/4/7 11:19, local time: 2024/11/7 08:51,
18.207.160.209:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f90_15.htm"> VirtualQuery</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.