110,534
社区成员
发帖
与我相关
我的任务
分享
if(加密狗超时或查找不到)
{
System.Diagnostics.Process CurrentProcess = System.Diagnostics.Process.GetCurrentProcess();
if (CurrentProcess.MainWindowHandle.ToInt32() == 0)
{
try
{
CurrentProcess.Kill();
}
catch
{
}
}
}