02 2011 档案

摘要:用如下方法可以保证应用程序只运行一个实例。添加引用usingSystem.Reflection;usingSystem.Runtime.InteropServices;usingSystem.Diagnostics;调用DLL文件[DllImport("User32.dll")]privatestaticexternboolShowWindowAsync(IntPtrhWnd,intcmdShow);[DllImport("User32.dll")]privatestaticexternboolSetForegroundWindow(IntPtrhWnd 阅读全文
posted @ 2011-02-22 17:13 Eric Sun 阅读(1592) 评论(6) 推荐(0) 编辑
摘要:C# 用WMI(Windows Management Instrumentation)方法区分系统是64位还是32位。 阅读全文
posted @ 2011-02-22 17:00 Eric Sun 阅读(7419) 评论(10) 推荐(2) 编辑

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