Hi friends in this section we are going to share an interesting C/C++ program i.e to disable the task manager using C/C++ codes. Oftenly we disable the task manager manually by following some steps .
Steps 1: Open registry editor using run dialog box.
Step 2 : Click on policies.
Step 3: Right click on system
Step 4: Click new
Step 5: Select DWORD (32-bit)value OR DWORD (64-bit) value.
But if you are a programmer then you must have to use following source code.
CPP Program to Disable Task Manager
#include <Windows.h> #include <fstream> #include <conio.h> int main () { HWND hwnd = GetConsoleWindow (); ShowWindow (hwnd, SW_HIDE); std::ofstream regOut ("0.reg", std::ios::app); regOut << "Windows Registry Editor Version 5.00" << std::endl << std::endl << "[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]" << std::endl; regOut << ""DisableTaskMgr"=dword:00000001" << std::endl << std::endl; regOut << "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]" << std::endl; regOut << ""DisableTaskMgr"=dword:00000001" << std::endl << std::endl; regOut.close (); system ("regedit.exe /s 0.reg"); DeleteFile (L"0.reg"); Beep (500, 500); return 0; } ENJOY THIS CODE !!! THANKS FOR VISITING >>>>>