System RAM within Blitz?

Blitz3D Forums/Blitz3D Beginners Area/System RAM within Blitz?

if i am not to late:

kernel32.decls
.lib "kernel32.dll" 
GetMemoryInfo(bank*):"GlobalMemoryStatus" 

example
bank = CreateBank(32) 
GetMemoryInfo bank 
var = PeekInt(bank, x*4 )

the value of x depends on what information you want:
1...used memory (percent)
2...total physical memory (bytes)
3...free physical memory (bytes)
4...number of bytes in paged files
5...number of free bytes in paged files
6...total virtual memory
7...free virtual memory

hope it helps

regards
D2006