It took me a while to find:
GlobalMemoryStatusEx Function (Windows)
MEMORYSTATUSEX Structure (Windows)

--
Mats