摘要:
public string GetMyOSName() { //获取当前操作系统信息 OperatingSystem MyOS = Environment.OSVersion; string MyOSName = ""; //如果版本号是 5, 则它应该是 Win2K, XP或2003 if (My 阅读全文
摘要:
public string GetMyOSName() { //获取当前操作系统信息 OperatingSystem MyOS = Environment.OSVersion; string MyOSName = ""; //如果版本号是 5, 则它应该是 Win2K, XP或2003 if (My 阅读全文
摘要:
#region 第一种方法 [DllImport("user32.dll")] static extern bool GetCursorInfo(out CURSORINFO pci); private const Int32 CURSOR_SHOWING = 0x00000001; [Struct 阅读全文
摘要:
public void WriteLog(string msg) { string filePath = AppDomain.CurrentDomain.BaseDirectory + "Log"; if (!Directory.Exists(filePath)) { Directory.Creat 阅读全文
|