加入main方法隐藏窗口 HWND hwndDOS = GetForegroundWindow(); ShowWindow(hwndDOS, SW_HIDE); 转载于:https://www.cnblogs.com/websecyw/p/10605262.html