Friday, May 8, 2009

Force application not to appear at taskbar

#include <windows.h>

int _tmain(int argc, _TCHAR* argv[])

{

HWND hwnd;

wchar_t pszNewWindowTitle[MAX_PATH]={0};


GetConsoleTitle(pszNewWindowTitle, sizeof(pszNewWindowTitle));

hwnd = FindWindow(NULL, pszNewWindowTitle);


if(hwnd)

ShowWindow(hwnd, SW_HIDE);


// Your Code..


return 0;

}

0 comments:

Post a Comment