hide console in c code example
Example: c program hide console window
#include<stdio.h>
#define _WIN32_WINNT 0x0500
#include <windows.h>
int main(int argc,char** argv){
HWND hWnd = GetConsoleWindow();
ShowWindow( hWnd, SW_MINIMIZE );
ShowWindow( hWnd, SW_HIDE );
return 0;
}