摘要:
using System;using System.Text;using System.Runtime.InteropServices;namespace DevInfo{??? class DeviceInfo??? {??????? public const int DIGCF_PRESENT??? = (0x00000002);??????? public const int MAX_DEV_LEN = 1000;??????? public const int SPDRP_FRIENDLYNAME = (0x0000000C);? ????????? // FriendlyName ( 阅读全文
摘要:
using System;using System.Runtime.InteropServices;using System.Text;namespace DevClasses{/// /// Summary description for Class./// class DeviceClasses{? /// ? /// The main entry point for the application.? /// ? public const int MAX_NAME_PORTS=7;? public const int RegDisposition_OpenExisting=(0x0000 阅读全文
摘要:
原文: http://www.theserverside.com/articles/article.tss?l=JDBCPerformancehttp://www.theserverside.com/articles/article.tss?l=JDBCPerformance_PartIIhttp://www.theserverside.com/articles/article.tss?l=JDBCPerformance_PartIII译文:http://dev.csdn.net/article/29067.shtmhttp://dev.csdn.net/article/29068.shtmh 阅读全文
摘要:
//取CPU编号 private String GetCpuID() {ManagementClass mc = new ManagementClass("Win32_Processor");ManagementObjectCollection moc = mc.GetInstances(); String strCpuID = null ;foreach( ManagementObject mo in moc ) {strCpuID = mo.Properties["ProcessorId"].Value.ToString();break; }retu 阅读全文
摘要:
using System;using System.IO;using System.Xml;public class Sample { public static void Main() { XmlTextReader reader = null; try { //Load the reader with the XML file. reader = new XmlTextReader("elems.xml"); //Parse the XML and display the text content of each of the elements. while (read 阅读全文