Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <Windows.h>
- void HideConsole()
- {
- ::ShowWindow(::GetConsoleWindow(), SW_HIDE);
- }
- void ShowConsole()
- {
- ::ShowWindow(::GetConsoleWindow(), SW_SHOW);
- }
- bool IsConsoleVisible()
- {
- return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement