console 窗口隐藏,不用编译为 windows 窗口程序。
#include <stdio.h>
#include <stdlib.h>
#define _WIN32_WINNT 0x0500
#include <windows.h>
HWND hWnd;
int main(int argc, char* argv[])
{
//invisible - hide console window
hWnd = GetConsoleWindow();
ShowWindow(hWnd, SW_HIDE);
return 0;
}