UNKNOWN //************************************** // Name: auto hide start // Description:This program will hide the "Start" button on the taskbar everytime someone tries to click on it. This is the perfect prank for someone who really ticks you off. works on windows 7 // By: sam lee // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //This code is copyrighted and has limited warranties. //Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.13857/lngWId.3/qx/vb/scripts/ShowCode.htm //for details. //************************************** #include <Windows.h> int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { while(TRUE) { //ShowWindow(FindWindowEx(NULL,NULL,((const char*)0xC017),NULL),SW_HIDE); HWND Startbar; RECT StartButtonRect; POINT CursorPosition; Startbar = FindWindow("Shell_TrayWnd",NULL); GetWindowRect(Startbar, &StartButtonRect); GetCursorPos(&CursorPosition); if(PtInRect(&StartButtonRect, CursorPosition)) { ShowWindow(Startbar, SW_HIDE); ShowWindow(FindWindowEx(NULL,NULL,((const char*)0xC017),NULL),SW_HIDE); } else { if(!IsWindowVisible(Startbar)) ShowWindow(Startbar, SW_SHOW); ShowWindow(FindWindowEx(NULL,NULL,((const char*)0xC017),NULL),SW_HIDE); } } Sleep(1000); return 0; }