#include <WinUser.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
return 0;
}
/*
Anwser from greper
Made by Mega145
query: c++ hide console
*/
#include <Windows.h>
void HideConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_HIDE);
}
void ShowConsole()
{
::ShowWindow(::GetConsoleWindow(), SW_SHOW);
}
bool IsConsoleVisible()
{
return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}
void ToggleConsole()
{
if (!IsConsoleVisible())
{
ShowConsole();
}
else if (IsConsoleVisible())
{
HideConsole();
}
}
#include <WinUser.h>
ShowWindow(GetConsoleWindow(), SW_HIDE);
#include <windows.h>
int main
{
ShowWindow(GetConsoleWindow(), SW_HIDE);
//ShowWindow(GetConsoleWindow(), SW_SHOW);
return 0;
}