title: How can I do the FreeConsole() but faster on c++
body: <p>I would very much like to know how I would be able to do the same function as <a href="https://docs.microsoft.com/en-us/windows/console/freeconsole" rel="nofollow noreferrer"><code>FreeConsole()</code> Windows API function</a> but faster.</p>
  <p>The <code>FreeConsole()</code> does hide the console, but still, the console window flashes open before it's hidden. I would like to have the console not open at all if it is possible. thank you.</p>
  <p><em>update based on comments</em></p>
  <p>My OS is Windows. I use the gcc compiler with the <code>windows.h</code> header and am using Visual Studio Code.</p>