Студопедия
rus | ua | other

Home Random lecture






What parameters should we use to get information about Computer Memory?


Date: 2015-10-07; view: 396.


What is the GlobalMemoryStatus function?

What is the API?

An application programming interface (API) is a protocol intended to be used as an interface by software components to communicate with each other

 

The GlobalMemoryStatus function retrieves information about current available memory and fills (заполняет) a TMemoryStatus structure. The function returns information about both physical and virtual memory.

GlobalMemoryStatus function obtains (получает) variable of the type TMemoryStatus. The TMemoryStatus contains several fields given in Table

 

PARAMETERS OF TMEMORYSTATUS STRUCTURE

dwLength This member contains the size of the structure in bytes and must be set to SizeOf(TMemoryStatus) before the call to GlobalMemoryStatus is made
dwMemoryLoad Contains a value between0 and 100 indicating the approximate percentage of memory in use.
dwTotalPhys Indicates the total amount of physical RAM in bytes.
dwAvailPhys Indicates the total amount of available physical RAM in bytes.
dwTotalPageFile Indicates the maximum amount of storage space in the swap file in bytes, including both used space and available space.
dwAvailPageFile Indicates the total amount of available space in the swap file in bytes.
dwTotalVirtual Indicates the total amount of virtual address space for the calling process in bytes.
dwAvailVirtual Indicates the total amount of unreserved and uncommitted space in the virtual address space of the calling process in bytes.

<== previous lecture | next lecture ==>
This is a simplified illustration of Memory Management | Часть первая: элементы организаций и процесса управления
lektsiopedia.org - 2013 год. | Page generation: 0.002 s.