您的位置:首页 > 编程语言 > C#

c# 物理内存大小 Windows可见内存大小 内存信息

2009-08-31 22:59 260 查看
转自http://blog.csdn.net/zxkid/archive/2006/11/21/1401421.aspx

十分感谢 zxkid 写的这篇文章。

记得要加入System.Management命名空间,在解决方案中另击选择添加引用,在弹出的对话框中找到即可

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Management;

得到Windows可用物理内存大小

得到物理内存的大小的代码如下:


#region 得到物理内存信息


string GetPhysicalMemory()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: