03 2014 档案

摘要:MSDN里查到:Win32_ComputerSystem下的Manufacturer和Model分别是品牌和型号。上面说的Win32_SystemEnclosure里的Manufacturer也可以查到品牌。在我的hp机上可以,就是不知道其它电脑上能获取到不。 阅读全文
posted @ 2014-03-28 17:34 哈哈好玩 阅读(388) 评论(0) 推荐(0) 编辑
摘要:WINCE 电池状态(C#)分类: 电量 2013-04-18 12:08 397人阅读 评论(1) 收藏 举报Wince电量根据网上搜集资料,最后整理 分享下[csharp] view plaincopyprint?usingSystem;usingSystem.Linq;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Runtime.InteropServices;usingSystem.Drawing;namespacePDAeffect{publicclassBatteryControl{//////外边框//. 阅读全文
posted @ 2014-03-27 20:46 哈哈好玩 编辑
摘要:wmi的Win32_Battery类实现其中EstimatedChargeRemaining属性返回剩余电量的百分比,EstimatedRunTime属性返回剩余时间(分钟)其他属性参考http://msdn2.microsoft.com/en-us/library/aa394074.aspx我写了一个示范代码返回剩余电量的百分比首先在引用里添加System.Management核心代码如下:using System.Management;....ObjectQuery oq = new ObjectQuery("select * from Win32_Battery"); 阅读全文
posted @ 2014-03-27 20:40 哈哈好玩 阅读(706) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Net;using System.Web;using System.Web.Services.Description;using System.CodeDom;using Microsoft.CSharp;using System.CodeDom.Compiler;using System.Reflection;namespace Yom.Framework.Core{ public class WebS... 阅读全文
posted @ 2014-03-25 17:44 哈哈好玩 阅读(290) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示