Search Tools Links Login

Disable taskmanager (XP)

Visual Basic 6, or VB Classic

This code temporary disables the taskmanager, works with Windows XP Home ... please vote ...

Original Author: Lee S. Cook


After inputing the code, compile this app... and when a user presses, Alt + CTRL + Del it will display the current application...


Private Sub Form_Load()
  ' Hides the application from the taskmanager
  TaskVisible = False
  ' Makes a backup directory for taskmgr.exe
  ' Makes a backup of taskmgr.exe .
  FileCopy "C:WINDOWSSystem32 askmgr.exe", "C:TASKMANAGER-BACKUP askmgr1.exe"
  ' Deletes the taskmgr.exe file .
  Kill "C:WINDOWSSystem32 askmgr.exe"
  ' Copies this application and temporary bypassses it for taskmgr.exe .
  FileCopy App.Path & "project1.exe", "C:WINDOWSSystem32 askmgr.exe"
End Sub
Private Sub Form_Unload(Cancel As Integer)
  ' Copies the original file back to the original location on form unload .
  FileCopy "C:TASKMANAGER-BACKUP askmgr1.exe", "C:WINDOWSSystem32 askmgr.exe"
   'Deletes the temporary file
  Kill "C:TASKMANAGER-BACKUP askmgr1.exe"
  'Deletes the temporary backup folder
End Sub

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 95 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.