Running C++ program invisible

1.6k views Asked by At
void Stealth()
{
   HWND Stealth;
   AllocConsole();
   Stealth = FindWindowA("ConsoleWindowClass", NULL);
   ShowWindow(Stealth,0);
}

I am calling this funtion from my main method in a C++ console application to hide the console window. It does it, but when I run the program the console window flashes for a split second before disappearing.

I want to run the program without this window flashing fully invisible. How to do this?

0

There are 0 answers