System.Machine.totalMemory Property

Gets the total amount of memory available in the current user session.

This property is read-only.

Syntax

propVal = System.Machine.totalMemory()

  

Parameters

  • intTotalMemory [out]
    Retrieves the amount of free memory recognized by the computer.

Remarks

The amount of memory returned is considered virtual and exceeds the amount of actual physical memory available.

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
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Machine

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK