Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <windows.h>
- typedef HWND (WINAPI *GETCONSOLEWINDOW)(void);
- GETCONSOLEWINDOW GetConsoleWindow;
- int main()
- {
- HWND hwndClosole;
- HMODULE hmod = GetModuleHandleA("KERNEL32.DLL");
- GetConsoleWindow =(GETCONSOLEWINDOW) GetProcAddress(hmod, "GetConsoleWindow");
- hwndClosole = GetConsoleWindow();
- ShowWindow(hwndClosole,SW_HIDE);
- Sleep(3000);
- ShowWindow(hwndClosole,SW_RESTORE);
- while(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment