|
@@ -20,8 +20,8 @@ namespace Client
|
|
|
{
|
|
|
Console.WriteLine(ex.Message);
|
|
|
}
|
|
|
-
|
|
|
- Console.ReadKey();
|
|
|
+ while (true)
|
|
|
+ Console.ReadKey();
|
|
|
}
|
|
|
[DllImport("User32.dll", EntryPoint = "FindWindow")]
|
|
|
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
|
|
@@ -43,7 +43,7 @@ namespace Client
|
|
|
ParenthWnd = FindWindow(null, "MyConsoleApp");
|
|
|
|
|
|
ShowWindow(ParenthWnd, 1);//隐藏本dos窗体, 0: 后台执行;1:正常启动;2:最小化到任务栏;3:最大化
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|