Results 1 to 6 of 6

Thread: Execute with Acess Denied permission

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    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,

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Execute with Acess Denied permission

    If you are talking about the task manager

    vb Code:
    1. 'Works up until Vista
    2. App.TaskVisible = False

    Disabling the Task Manager via the registry.

    vb Code:
    1. Dim reg As New RegistryClass
    2.  
    3.  With reg
    4.          'Disable task manager
    5.       .SetKeyValue .HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", .RegDWORD, "DisableTaskMgr", "1"
    6.   End With
    7.  
    8.  With reg
    9.        'Enable task manager
    10.       .SetKeyValue .HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", .RegDWORD, "DisableTaskMgr", "0"
    11.   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.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    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,

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Execute with Acess Denied permission

    I'm not sure but I think making your application act as a service can do that.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2012
    Posts
    106

    Re: Execute with Acess Denied permission

    Ohkay Thank you Nightwalker83,

    I need to search about creating access denied services in vb6.

    Regards,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width