View Single Post
  #13  
Old 08-31-2013, 19:54
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 783
Rept. Given: 490
Rept. Rcvd 1,123 Times in 305 Posts
Thanks Given: 89
Thanks Rcvd at 716 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
I found a solution that is clean and only requires modification of a few registry keys on program installation to work... The solution that works on my pc (after binding CTRL+ALT+DEL to taskmgr.exe) is this:

Just add the DLL to your AppInit_DLLs and task manager will only open if you created the mutex named "green_light"
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs for 32 bit taskmgr.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs for 64 bit taskmgr.exe

Attached source + dlls, fully tested and working on Win7 Ultimate x64.

edit: you might wanna read some topics about AppInit_DLLs if you're planning to run your software on Windows 8. Here it requires you to set some other registry keys as well. also added a small mutex tool so you can test it without writing much stuff
Attached Files
File Type: rar taskmgr_disable.rar (43.4 KB, 17 views)
File Type: rar MutexTool.rar (5.1 KB, 10 views)

Last edited by mr.exodia; 08-31-2013 at 20:00. Reason: added attachment
Reply With Quote
The Following User Says Thank You to mr.exodia For This Useful Post:
niculaita (07-04-2021)