02 2006 档案

C#中得到网卡号
摘要:using System.Management; //get the MAC address ManagementClass mc=new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc=mc.GetInstances(); string[] MacAddress=new st... 阅读全文

posted @ 2006-02-21 14:44 walker 阅读(305) 评论(0) 推荐(0) 编辑

C#怎样打开关闭CDROM?
摘要:using System;using System.Text;using System.Runtime.InteropServices; class CloseCD{ [DllImport( "winmm.dll", EntryPoint="mciSendStringA", CharSet=CharSet.Ansi )] protected static extern int mciSend... 阅读全文

posted @ 2006-02-21 12:56 walker 阅读(266) 评论(0) 推荐(0) 编辑

导航

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