Execute with Acess Denied permission
Hello,
I am impressed by few Antiviruses applications. I am getting 'Access Denied' message on killing them via Process Manager in Windows. So My question is, How can we create such application in VB6 which would be unable to kill by process managers?
If you know please share here.
Thanks
Regards,
Re: Execute with Acess Denied permission
If you are talking about the task manager
vb Code:
'Works up until Vista
App.TaskVisible = False
Disabling the Task Manager via the registry.
vb Code:
Dim reg As New RegistryClass
With reg
'Disable task manager
.SetKeyValue .HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", .RegDWORD, "DisableTaskMgr", "1"
End With
With reg
'Enable task manager
.SetKeyValue .HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", .RegDWORD, "DisableTaskMgr", "0"
End With
The above code just needs to be placed in the project here (see post #8) which, is another project I created using the exact same registry class.
I hope you are not going to do anything illegal with the code.
Re: Execute with Acess Denied permission
Thread moved from the 'CodeBank VB6' forum (which is for you to post working code examples, not questions) to the 'VB6 and earlier' forum
Re: Execute with Acess Denied permission
Hello si_the_geek, Thanks for moving the thread on proper section.
@ NightWalker, No i dint mean to disable taskmanager or to hide application on process list. I simply mean is to execute application with the permission that it wouldn't be terminate by normal user. For example, if you have installed any Antivirus on your system, You can goto taskmanager and try to terminate its running processes. You will get error message something like: Access Denied.
I am asking about such process execution, I want to know if it is possible with VB6 app or not.
Thanks again
Regards, :)
Re: Execute with Acess Denied permission
I'm not sure but I think making your application act as a service can do that.
Re: Execute with Acess Denied permission
Ohkay Thank you Nightwalker83,
I need to search about creating access denied services in vb6.
Regards,