看见月亮成猩猩,按国际惯例低调散分,见者有份II解决办法
看见月亮成猩猩,按国际惯例低调散分,见者有份II
获得本机内存使用情况
//项目中添加Micrsoft.VisualBasic引用
using Microsoft.VisualBasic.Devices;
Computer vComputer = new Computer();
StringBuilder vMessage = new StringBuilder();
vMessage.Append(string.Format( "虚拟内存共计={0}\r\n ",
vComputer.Info.TotalVirtualMemory));
vMessage.Append(string.Format( "虚拟内存使用={0}\r\n ",
vComputer.Info.AvailableVirtualMemory));
vMessage.Append(string.Format( "物理内存共计={0}\r\n ",
vComputer.Info.TotalPhysicalMemory));
vMessage.Append(string.Format( "物理内存使用={0}\r\n ",
vComputer.Info.AvailablePhysicalMemory));
MessageBox.Show(vMessage.ToString());
每次回复1分,满100结贴
散分、接分混眼熟
Amanda夏
13 years, 2 months ago