摘要:
用如下方法可以保证应用程序只运行一个实例。添加引用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
阅读(1599)
评论(6)
推荐(0)
摘要:
C# 用WMI(Windows Management Instrumentation)方法区分系统是64位还是32位。 阅读全文
posted @ 2011-02-22 17:00
Eric Sun
阅读(7439)
评论(10)
推荐(2)

浙公网安备 33010602011771号