c program hide console window
snippet in c

c program hide console window

user487

#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;
}