IASMemorySlider::put_RamUsed

This method sets the amount of RAM currently being used.

Syntax

HRESULT put_RamUsed( long lRamUsed );

Parameters

lRamUsed
Long integer that contains the amount of RAM currently in use.

Return Values

NOERROR indicates success. E_OUTOFMEMORY indicates that the system is out of memory.

Remarks

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.

See Also

GlobalMemoryStatus, MEMORYSTATUS