Welcome to SmashTheStack Forum!

Smash The Stack

wargames

You are not logged in.

Announcement

#1 2008-04-19 04:20:36

ShkupjanaLee
Newbie
Registered: 2008-04-19
Posts: 1

Disable + Renable Start menu

Authors Comments: it couldnt be easier
one of the first things i did in C++

Code:

used DevC++ under Winxp sp1 (console app)

//Disable My Start

//by:Mouse

#include <windows.h>

int main()

{

    HWND taskbar,start;

   taskbar = FindWindow("Shell_TrayWnd",NULL);

   start = FindWindowEx(taskbar,NULL,"button",NULL);

   EnableWindow(start,FALSE);

} 









//Renable My Start

//by:Mouse

#include <windows.h>

int main()

{

    HWND taskbar,start;

   taskbar = FindWindow("Shell_TrayWnd",NULL);

   start = FindWindowEx(taskbar,NULL,"button",NULL);

   EnableWindow(start,TRUE);

}

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB