02 2011 档案
摘要:用如下方法可以保证应用程序只运行一个实例。添加引用usingSystem.Reflection;usingSystem.Runtime.InteropServices;usingSystem.Diagnostics;调用DLL文件[DllImport("User32.dll")]privatestaticexternboolShowWindowAsync(IntPtrhWnd,intcmdShow);[DllImport("User32.dll")]privatestaticexternboolSetForegroundWindow(IntPtrhWnd
阅读全文
摘要:C# 用WMI(Windows Management Instrumentation)方法区分系统是64位还是32位。
阅读全文