隐藏窗口(hide window)
// Hide the window of wow.exe with typing "hide.exe"
// Then show it with typing "hide.exe s"
#include <windows.h>
int main( int argc,char *argv[])
{
HWND hWnd;
hWnd=FindWindow(NULL,"魔兽世界");
printf("%d",hWnd);
if(argc>1&&*argv[1]=='s')
{
printf("\nEntered IF Function!");
ShowWindow(hWnd,SW_SHOW);
return 0;
}
ShowWindow(hWnd,SW_HIDE);
return 0;
}