Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB Expert!

Join 244,211 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,473 people online right now. Registration is fast and FREE... Join Now!




Disabling XP task manager in VB6

 
Reply to this topicStart new topic

Disabling XP task manager in VB6

ninetails9tails
12 Nov, 2008 - 07:22 PM
Post #1

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 4

I have a problem with my Internet timer, since the user of the client PC can turn off the installed client program using task manager using CTRL+ALT+Delete keys. Is there a way or code to disable the task manager? Thank you in advance!

User is offlineProfile CardPM
+Quote Post


no2pencil
RE: Disabling XP Task Manager In VB6
12 Nov, 2008 - 07:29 PM
Post #2

Unix Ronin
Group Icon

Joined: 10 May, 2007
Posts: 10,438



Thanked: 198 times
Dream Kudos: 2725
Expert In: Goofing Off

My Contributions
Rather than disable the task manager, why don't you run your program as a service?
User is offlineProfile CardPM
+Quote Post

Kresha7
RE: Disabling XP Task Manager In VB6
13 Nov, 2008 - 04:06 AM
Post #3

New D.I.C Head
*

Joined: 2 Nov, 2008
Posts: 22



Thanked: 2 times
My Contributions
all you have to do is to edit the registry key
here put this in a commanbutton or where you want
CODE
Shell("REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 1 /f", vbNormalFocus)

User is offlineProfile CardPM
+Quote Post

ninetails9tails
RE: Disabling XP Task Manager In VB6
13 Nov, 2008 - 03:57 PM
Post #4

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 4

QUOTE(Kresha7 @ 13 Nov, 2008 - 04:06 AM) *

all you have to do is to edit the registry key
here put this in a commanbutton or where you want
CODE
Shell("REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 1 /f", vbNormalFocus)



Thanks a lot.. It really works!
User is offlineProfile CardPM
+Quote Post

VB Crash
RE: Disabling XP Task Manager In VB6
28 Nov, 2008 - 07:50 PM
Post #5

D.I.C Head
**

Joined: 28 Nov, 2008
Posts: 130



Thanked: 7 times
My Contributions
So editing the registry in this case is not good. I prefer using simple method

CODE


Private Sub Timer1_Timer()
Shell "taskmgr", vbHide
Form1.SetFocus
End Sub



but Registry is better in many case

Path: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
Key: DisableTaskMgr
Type: REG_DWORD
Value: 1=DISABLE TaskManager
Value: 0=Enable TaskManager

Vace
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 07:57AM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month