Re: how to get free and total physical memory in GB?
| Newsgroups | gmane.comp.windows.power-pro |
|---|---|
| Message-ID | <[email protected]> |
I think you need to use perf plugin, downloadable from plugins folder. Download to pcf folder, unzip, move perf.dll to plugins folder.
It has its own pdf help file. It's complicated to understand, I admit, but once you do so, you have access to any Windows performance counter. You can see what they are by using perf.browse service. You might need to do some googling to figure out which performance counter is physical memory and which is virtual. (I don't know myself).
I'm thinking of something like (not tested)
*info expr((perf.mbytes(5)/1024.0).format("f"), 1))
Or if you are familiar with dll plugin, you could try to call GlobalMemoryStatusEx directly and then divide result by 1024.0