[DllImport("kernel32.dll", SetLastError=true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool GetPhysicallyInstalledSystemMemory(out ulong MemoryInKilobytes);
Declare Function GetPhysicallyInstalledSystemMemory Lib "kernel32.dll" (ByRef TotalMemoryInKilobytes As ULong) As Boolean
None.
Do you know one? Please contribute it!
None.
Please add some!
[DllImport("kernel32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool GetPhysicallyInstalledSystemMemory(out ulong TotalMemoryInKilobytes);
static void Main()
{
ulong l;
GetPhysicallyInstalledSystemMemory(out l);
Console.WriteLine((l / 1024) + "MB of RAM installed.");
Console.ReadLine();
}