class Program { [DllImport("user32.dll", EntryPoint = "ShowWindow", SetLastError = true)] static extern bool ShowWindow(IntPtr hWnd, uint nCmdShow); [DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)] public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); static void Main(string[] args) { Console.Title = "WAHAHA"; IntPtr intptr = FindWindow("ConsoleWindowClass", "WAHAHA"); if (intptr != IntPtr.Zero) { ShowWindow(intptr, 0);//隐藏这个窗口 } string x; x = Console.ReadLine(); } }转载于:https://www.cnblogs.com/812931637Z/p/4921022.html
127



被折叠的 条评论
为什么被折叠?



