Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT]Enable and Disable TaskManger in vb.net [TUT]
#2
Import

Code:
Imports Microsoft.Win32

Function

Code:
Function ToggleTaskManager(ByVal State As Integer)
        Try
            Dim systemRegistry As RegistryKey = Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System")
            If State = 0 Then
                systemRegistry.SetValue("DisableTaskMgr", 1)
                systemRegistry.Close()
            ElseIf State = 1 Then
                systemRegistry.SetValue("DisableTaskMgr", 0)
                systemRegistry.Close()
            End If
            Return True
        Catch ex As Exception
            Return False
        End Try
    End Function

Enable Task Manager

Code:
ToggleTaskManager(1)

Disable Task Manager

Code:
ToggleTaskManager(0)
[Image: cooldude.png]

(09-05-2011, 08:36 AM)Orgy Wrote: If you understand what you're doing, you aren't learning anything. ;)
Reply


Messages In This Thread
RE: [TUT]Enable and Disable TaskManger in vb.net [TUT] - by ★Cooldude★ - 12-18-2011, 02:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to hook the keyboard. [VB.NET] [TuT] Vorfin 92 60,993 09-23-2019, 11:55 AM
Last Post: Jamimartin
  [TUT]Creating Advanced Web Browser with Awesome Theme Imaking31 0 1,320 05-25-2013, 03:12 AM
Last Post: Imaking31
  VB.NET Port Scanner [TUT] Fragma 30 14,474 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] MD5 Encrypter & Finder [VB.NET] Fragma 12 7,857 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 61,970 10-07-2012, 06:56 AM
Last Post: a99

Forum Jump:


Users browsing this thread: 1 Guest(s)