hola como estas
agrega este codigo
Const REG_DWORD = 4
Const HKEY_CURRENT_USER = &H80000001
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegSetValueExLong Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Long, ByVal cbData As Long) As Long
Sub SaveStringLong(hKey As Long, strPath As String, strValue As String, strData As String)
  Dim Ret
  RegCreateKey hKey, strPath, Ret
  RegSetValueExLong Ret, strValue, 0&, REG_DWORD, CByte(strData), 4&
  RegCloseKey Ret
End Sub
agrega un commandbutton
y coloca este codigo
Private Sub Command1_Click()
Â
 Dim strString As String
 If Command1.Caption = "Deshabilitar el Administrador de Tareas" Then
  strString = "1"
  Command1.Caption = "Habilitar el Administrador de Tareas"
 Else
  strString = "0"
  Command1.Caption = "Deshabilitar el Administrador de Tareas"
 End If
Â
 SaveStringLong HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", CByte(strString)
Â
 MsgBox ("Presiona las teclas Ctrl+Alt+Supr para que notes el cambio"), vbInformation, "CALIGASTIA"
End Sub
bueno para acavar coloca esto en tu form
Private Sub Form_Load()
Form1.Caption = "caligastia"
Command1.Caption = "Deshabilitar el Administrador de Tareas"
End Sub
espero que te siva amigo
si no le entiendes por que lodi un poco revuelto y no se si les doy a omprender
descagalo de aca
Para ver este enlace Registrate o Inicia Sesion