<bdo id='Tdnk4'></bdo><ul id='Tdnk4'></ul>
    1. <i id='Tdnk4'><tr id='Tdnk4'><dt id='Tdnk4'><q id='Tdnk4'><span id='Tdnk4'><b id='Tdnk4'><form id='Tdnk4'><ins id='Tdnk4'></ins><ul id='Tdnk4'></ul><sub id='Tdnk4'></sub></form><legend id='Tdnk4'></legend><bdo id='Tdnk4'><pre id='Tdnk4'><center id='Tdnk4'></center></pre></bdo></b><th id='Tdnk4'></th></span></q></dt></tr></i><div id='Tdnk4'><tfoot id='Tdnk4'></tfoot><dl id='Tdnk4'><fieldset id='Tdnk4'></fieldset></dl></div>

      <small id='Tdnk4'></small><noframes id='Tdnk4'>

      <tfoot id='Tdnk4'></tfoot>

    2. <legend id='Tdnk4'><style id='Tdnk4'><dir id='Tdnk4'><q id='Tdnk4'></q></dir></style></legend>
      1. 如何获取控制台应用程序窗口的句柄

        时间:2023-08-26
      2. <i id='494nR'><tr id='494nR'><dt id='494nR'><q id='494nR'><span id='494nR'><b id='494nR'><form id='494nR'><ins id='494nR'></ins><ul id='494nR'></ul><sub id='494nR'></sub></form><legend id='494nR'></legend><bdo id='494nR'><pre id='494nR'><center id='494nR'></center></pre></bdo></b><th id='494nR'></th></span></q></dt></tr></i><div id='494nR'><tfoot id='494nR'></tfoot><dl id='494nR'><fieldset id='494nR'></fieldset></dl></div>

          <bdo id='494nR'></bdo><ul id='494nR'></ul>

          <tfoot id='494nR'></tfoot>

          <small id='494nR'></small><noframes id='494nR'>

            <tbody id='494nR'></tbody>
          <legend id='494nR'><style id='494nR'><dir id='494nR'><q id='494nR'></q></dir></style></legend>

                  本文介绍了如何获取控制台应用程序窗口的句柄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  谁能告诉我如何在 C# 中获取 Windows 控制台应用程序的句柄?在 Windows 窗体应用程序中,我通常会尝试 this.Handle.

                  Can someone tell me how to get the handle of a Windows console application in C#? In a Windows Forms application, I would normally try this.Handle.

                  推荐答案

                  不确定是否有效,但您可以尝试:

                  Not sure it works, but you can try that :

                  IntPtr handle = Process.GetCurrentProcess().MainWindowHandle;
                  

                  这篇关于如何获取控制台应用程序窗口的句柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:将 Windows 应用程序中的 console.writeline 重定向到字 下一篇:如何在执行 MSTest 测试期间写入 Console.Out

                  相关文章

                  最新文章

                  <small id='dVkT0'></small><noframes id='dVkT0'>

                  <i id='dVkT0'><tr id='dVkT0'><dt id='dVkT0'><q id='dVkT0'><span id='dVkT0'><b id='dVkT0'><form id='dVkT0'><ins id='dVkT0'></ins><ul id='dVkT0'></ul><sub id='dVkT0'></sub></form><legend id='dVkT0'></legend><bdo id='dVkT0'><pre id='dVkT0'><center id='dVkT0'></center></pre></bdo></b><th id='dVkT0'></th></span></q></dt></tr></i><div id='dVkT0'><tfoot id='dVkT0'></tfoot><dl id='dVkT0'><fieldset id='dVkT0'></fieldset></dl></div>
                    <bdo id='dVkT0'></bdo><ul id='dVkT0'></ul>
                    <legend id='dVkT0'><style id='dVkT0'><dir id='dVkT0'><q id='dVkT0'></q></dir></style></legend>
                  1. <tfoot id='dVkT0'></tfoot>