# Function Reference

# _WinAPI_GlobalMemoryStatus

Retrieves information about current available memory

#include <WinAPIMem.au3>
_WinAPI_GlobalMemoryStatus ( )

## Return Value

Success: | Array with the following format: $aMem[0] - Percent of Mem in use $aMem[1] - Physical Mem: Total $aMem[2] - Physical Mem: Free $aMem[3] - Paging file: Total $aMem[4] - Paging file: Free $aMem[5] - User Mem: Total $aMem[6] - User Mem: Free
Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information

## Remarks

Unlike the AutoIt MemGetStats() function, this function returns the values in bytes

## See Also

Search GlobalMemoryStatusEx in MSDN Library.