您的位置:首页 > 其它

判断是否已经运行了某个程序

2006-10-11 17:06 197 查看
using System.Threading;
using System.Windows.Forms;

[STAThread]
static void Main(string[] args)
{
bool ret;
Mutex mutex = new Mutex(true, Application.ProductName, out ret);
if(ret)
{
Application.Run(new MainWnd());
m.RealseMutex();
}
else
{
// 已启动
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐