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?