摘要: 废话少说直接上代码了:#region 只允许一台主机上运行一个应用程序 private const int WS_SHOWNORMAL = 1; [DllImport("User32.dll")] private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow); [DllImport("User32.dll")] private static extern bool SetForegroundWindow(IntPtr hWnd); //... 阅读全文
posted @ 2012-11-30 15:32 十四 阅读(284) 评论(0) 推荐(0) 编辑