|
-
Nov 2nd, 2001, 11:06 PM
#1
Thread Starter
New Member
Disable Task Manager (not hiding it)
I wish to disable the task manager when my program is running. Also, I wish to disable the Ctrl+Alt+Delete, Ctrl+Esc (Start button), as per your code, it simply does not work.
Help me to do it.
-
Nov 3rd, 2001, 09:44 AM
#2
Hyperactive Member
This might help you:
Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Private Const SPI_SCREENSAVERRUNNING = 97
SystemParametersInfo SPI_SCREENSAVERRUNNING, True, "1", 0
'to disable screensaver: set True to False 
What it does is simulating that the screensaver is running. You won't get one, but the system thinks it really is there. This will both disable Ctr+Alt+Del and Ctr+Esc.
There is a API function, called unregisterhotkey (speaks for itself) but I do not have the time to search for you right now how to use it, sorry. I hope this will be helpful to you and that you want create virusses with it .
-
Nov 5th, 2001, 07:33 AM
#3
Black Cat
Here's the keys for TaskMan, get the registry function off your favorite API site:
VB Code:
Private Sub cmdDisable_Click()
SaveToRegistry HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", 1
FormInit
End Sub
Private Sub cmdEnable_Click()
SaveToRegistry HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", 0
FormInit
End Sub
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|