隐藏窗口(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; 

}

posted on 2012-12-07 03:44  仗帅闯江湖  阅读(201)  评论(0编辑  收藏  举报

导航