VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Disable taskmanager (XP)

by Lee S. Cook (3 Submissions)
Category: Coding Standards
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

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

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

Rate Disable taskmanager (XP)

Private Sub Form_Load()
  ' Hides the application from the taskmanager
  
  TaskVisible = False
  ' Makes a backup directory for taskmgr.exe
  
  MkDir "C:\TASKMANAGER-BACKUP"
  
  ' Makes a backup of taskmgr.exe .
  
  FileCopy "C:\WINDOWS\System32\taskmgr.exe", "C:\TASKMANAGER-BACKUP\taskmgr1.exe"
  
  ' Deletes the taskmgr.exe file .
  
  Kill "C:\WINDOWS\System32\taskmgr.exe"
   
  ' Copies this application and temporary bypassses it for taskmgr.exe .
  
  FileCopy App.Path & "\project1.exe", "C:\WINDOWS\System32\taskmgr.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\taskmgr1.exe", "C:\WINDOWS\System32\taskmgr.exe"
  
   'Deletes the temporary file
  
  Kill "C:\TASKMANAGER-BACKUP\taskmgr1.exe"
  
  'Deletes the temporary backup folder
  
  RmDir ("C:\TASKMANAGER-BACKUP")
  
End Sub

Download this snippet    Add to My Saved Code

Disable taskmanager (XP) Comments

No comments have been posted about Disable taskmanager (XP). Why not be the first to post a comment about Disable taskmanager (XP).

Post your comment

Subject:
Message:
0/1000 characters