控制同一exe程序打开多次
摘要:
1.新建一个SingleInstance类:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Diagnostics;namespace NetChange{ class SingleInstance { [DllImport("User32.dll")] private static extern bool ShowWindowAsync(IntPtr hWnd, int cmdShow); [DllImport(" 阅读全文
posted @ 2010-12-31 16:24 曾伟 阅读(880) 评论(0) 推荐(0) 编辑