Jump to content
SlicK

Task Manager

Recommended Posts

Posted

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\\");
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...