System.Machine.availableMemory property
[ The Windows Gadget Platform/Sidebar is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Gets the amount of available memory in megabytes (MB).
This property is read-only.
Syntax
iavailableMemory = System.Machine.availableMemory
Property value
An Integer that receives the amount of available memory.
Remarks
Individual CPU details are accessible through the CPUs collection of System.Machine.
Examples
The following example demonstrates how to get machine details.
/// <summary>
/// Initialize the gadget.
/// </summary>
function Init()
{
// Get the machine details.
sMachineInfo += "Processor Architecture: " + System.Machine.processorArchitecture + "<br/>";
sMachineInfo += "Total Memory: " + System.Machine.totalMemory + "<br/>";
sMachineInfo += "Available Memory: " + System.Machine.availableMemory + "<br/>";
// Initialize the gadget content.
SetContentText();
}
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
End of client support |
Windows 7 |
End of server support |
Windows Server 2008 |
IDL |
|
DLL |
|