Results 1 to 3 of 3

Thread: Disable Task Manager (not hiding it)

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    2

    Exclamation 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.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    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 .

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Here's the keys for TaskMan, get the registry function off your favorite API site:
    VB Code:
    1. Private Sub cmdDisable_Click()
    2.     SaveToRegistry HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", 1
    3.     FormInit
    4. End Sub
    5.  
    6. Private Sub cmdEnable_Click()
    7.     SaveToRegistry HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", 0
    8.     FormInit
    9. 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
  •  



Click Here to Expand Forum to Full Width