# Function Reference

MemGetStats

Retrieves memory related information.

MemGetStats ( )

Parameters

None.

Return Value

Returns a seven-element array containing the memory information:
$array[0] = Memory Load (Percentage of memory in use)
$array[1] = Total physical RAM
$array[2] = Available physical RAM
$array[3] = Total Pagefile
$array[4] = Available Pagefile
$array[5] = Total virtual
$array[6] = Available virtual
All memory sizes are in kilobytes.

Remarks

None.

Related

None.

Example

$mem = MemGetStats()
MsgBox(0, "Total physical RAM (KB):", $mem[1])