This method sets the amount of RAM currently being used.
HRESULT put_RamUsed( long lRamUsed );
NOERROR indicates success. E_OUTOFMEMORY indicates that the system is out of memory.
To determine the amount of RAM currently being used, call the GlobalMemoryStatus function to retrieve a MEMORYSTATUS structure. You can then use the put_RamUsed method to set the value displayed by the memory slider to value obtained from the MEMORYSTATUS structure.
GlobalMemoryStatus, MEMORYSTATUS