Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Stopping key shortcuts as long as your app is open.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
cildor666
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2008
Posts: 95

PostPosted: Sun Oct 05, 2008 4:17 am    Post subject: Stopping key shortcuts as long as your app is open. Reply with quote

Is there a way to stop Task Manager from being opened as long as your app is opened, so if somebody does 'Ctrl Alt + Delete' a message box pops up saying "Task Manager is disabled" and it stops it from opening.

I'm using Visual Basic 2008 Express.
Any help is greatly appreciated.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sun Oct 05, 2008 4:23 am    Post subject: Reply with quote

FindWindow, lololol. Or disable it via the registry.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Oct 05, 2008 4:24 am    Post subject: Reply with quote

I guess you could watch for the process and shut it down after as soon as you detect it.
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Sun Oct 05, 2008 5:17 am    Post subject: Reply with quote

Hook NtOpenProcess
_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25987
Location: The netherlands

PostPosted: Sun Oct 05, 2008 5:25 am    Post subject: Reply with quote

hook the ctrl-alt-delete interrupt (0x19)
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Oct 05, 2008 5:34 am    Post subject: Reply with quote

http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/93504.mspx?mfr=true

If you set the DisableTaskMgr entry to 1 in:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
then users will get a message saying something like 'Task Manager has been disabled on your system'.
Back to top
View user's profile Send private message
cildor666
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2008
Posts: 95

PostPosted: Sun Oct 05, 2008 9:27 am    Post subject: Reply with quote

tombana wrote:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/93504.mspx?mfr=true

If you set the DisableTaskMgr entry to 1 in:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
then users will get a message saying something like 'Task Manager has been disabled on your system'.


Ok, so what would the code be to disable it while it is loading. And to enable it at form closing?
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Oct 05, 2008 10:35 am    Post subject: Reply with quote

RegOpenKeyEx/RegSetValue/RegCloseKey ?
Back to top
View user's profile Send private message
cildor666
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2008
Posts: 95

PostPosted: Sun Oct 05, 2008 10:39 am    Post subject: Reply with quote

Slugsnack wrote:
RegOpenKeyEx/RegSetValue/RegCloseKey ?


I figured out my own way, i created a timer and set the interval to 50 and in the timer code i put this : Shell("C:\WINDOWS\system32\tskill.exe taskmgr")

And it works Wink
Back to top
View user's profile Send private message
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Sun Oct 05, 2008 7:27 pm    Post subject: Reply with quote

That's horrible ¬_¬

Learn to code properly.
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Sun Oct 05, 2008 7:52 pm    Post subject: Reply with quote

Burningmace wrote:
That's horrible ¬_¬

Learn to code properly.

No kidding.

If you don't want to allow the process to open at all, hook the Ctrl+Alt+Delete interrupt like DarkByte said, but if you want to do it for any program, hook NtOpenProcess, and just make the hook set on the process specified by the user.

But If you want to just kill it, then learn to kill it properly.

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Sun Oct 05, 2008 8:01 pm    Post subject: Reply with quote

I'm also less inclined to give out information to this guy. Little coding knowledge and -1 reputation asking a question like this screams "virus".

So, unless he fancies learning to hook NtOpenProcess like a proper programmer, I'm leaving this thread well alone.
Back to top
View user's profile Send private message
Rev.
How do I cheat?
Reputation: 0

Joined: 23 Jul 2008
Posts: 5

PostPosted: Sun Oct 05, 2008 8:59 pm    Post subject: Reply with quote

cildor666 wrote:
Slugsnack wrote:
RegOpenKeyEx/RegSetValue/RegCloseKey ?


I figured out my own way, i created a timer and set the interval to 50 and in the timer code i put this : Shell("C:\WINDOWS\system32\tskill.exe taskmgr")

And it works Wink

That's a terrible way to do it. Confused Let alone using a timer to kill a process, you used another program to do it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites