hide window c++ code example
Example 1: how to hide the console c++
#include <WinUser.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
return 0;
}
Example 2: how to hide the c++ console
#include <WinUser.h>
ShowWindow(GetConsoleWindow(), SW_HIDE);
Example 3: hide window c++
#if _WIN32_WINNT < 0x0500
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#include <windows.h>