SlicK Posted March 5, 2007 Report Posted March 5, 2007 Doua metode pentru dezactivarea Task Managerului din windows...Metoda 1: Dezactivam listele de aplicatii si procese#include <windows.h>void DTM(){ while(1) { Sleep(100); // sa nu supraincarcam procesorul HWND parent=FindWindow(NULL,"Windows Task Manager"); //cautam ferestra principala HWND child =FindWindowEx(parent,NULL,NULL,""); // sub fereastra HWND list =FindWindowEx(child, NULL, "SysListView32", NULL); // cautam lista de aplicatii/procese EnableWindow(list,false); // dezactivam lista } return;}int main(){ DWORD id; CreateThread(0,0,(LPTHREAD_START_ROUTINE)&DTM, NULL,0,&id); // pornim functia intr-un alt thread pentru a nu afecta resstul programului Sleep(30000); // programul va rula 30 de secunde de la lansare return 0;}Metoda 2: Dezactivam complet din registrii dezactivare:#include <windows.h>int main(){ HKEY hKey; char *Val="0"; RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\", &hKey); RegSetValueEx(hKey, "DisableTaskmgr",0,REG_DWORD,(const unsigned char*)Val,sizeof(Val));} si reactivare#include <windows.h>int main(){ RegDeleteKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\");} Quote
aristotel Posted March 6, 2007 Report Posted March 6, 2007 Ms de info...chiar eram curios cum faceau niste trojeni sa nu mai poti accesa task manager...;)Ms ink o data pt cod... Quote