Wednesday, June 17, 2009

C Program to change Start Menu Name

/* Program to rename the Start Button
* Illustrates the use of FindWindow, FindWindowEx and SendMessage functions
**/
#include

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
HWND hTray, hButton;
// Get handle of the Taskbar
hTray = FindWindow("Shell_TrayWnd","");
if (hTray)
// Get handle of the start button
hButton = FindWindowEx(hTray, NULL, "BUTTON",NULL);
if (hButton)
{
// Rename it to "Begin"
SendMessage(hButton, WM_SETTEXT, 0, (LPARAM)"LegendHackers");
MessageBox (NULL,"Rename Successful", "Start Menu", MB_OK);
}
return 0;
}

In above c program change the name LegendHackers written in red color to whatever name you want to display for your start Menu and then save the program file with .c extension Ex. StartMenu.c

after saving fire up your fav compiler like mine is Turbo c++ 4.5 open your program , compile it and run it.

Have a nice day...

Happy Hacking...

0 comments:

Post a Comment