[DllImport("user32.dll", EntryPoint = "ShowWindow", SetLastError = true)]
        private static extern bool ShowWindow(IntPtr hWnd, uint nCmdShow);
        [DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
        private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
 
 
Console.Title = Guid.NewGuid().ToString("n");
            var w = FindWindow("ConsoleWindowClass", Console.Title);
            if (w != IntPtr.Zero)
                ShowWindow(w, 0);

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-06-18
  • 2021-07-25
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-05-31
相关资源
相似解决方案