Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


disable ALT+CTRL+DEL, CTRL + ESC in Win2k/XP


disable ALT+CTRL+DEL, CTRL + ESC in Win2k/XP

Author
Message
CDRIVE
CDRIVE
Forum God
Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)Forum God (104K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
[quote]programmerguide (12/9/2008)
I have a code to disable ALT+CTRL+DEL OR to disable Task manager in Windows Xp....

mail me your email address....

at : programmer_guide@yahoo.in[/quote]

Kind of defeats the purpose of the forum don't you think?

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

programmerguide
programmerguide
Forum God
Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)Forum God (310 reputation)

Group: Forum Members
Posts: 2, Visits: 5
I have a code to disable ALT+CTRL+DEL OR to disable Task manager in Windows Xp....



mail me your email address....



at : programmer_guide@yahoo.in

ProgrammerGuide.net
TheViper
TheViper
Forum Guru
Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)Forum Guru (187 reputation)

Group: Forum Members
Posts: 1, Visits: 4
Here is the code to enable and disable "Alt+ctrl+del" keys on windows XP



Cheers.....





Option Explicit

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' Copyright ©2007-2008 The Viper ...www.singingvipers.com , All Rights Reserved.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' This code explains how to disable and enable the Task

' Manager in Windows XP.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

' For any queries,suggestions and bug reports feel free

' to contact me at viperdr@yahoo.com

'***********************************************************************

' CONSTANTS

'***********************************************************************

Private Const KEY_ALL_ACCESS = &H2003F

Private Const HKEY_CURRENT_USER = -2147483647

Private Const ENABLE_TASKMGR = 0

Private Const DISABLE_TASKMGR = 1

'***********************************************************************

' Windows API Declarations for Registry Functions

'***********************************************************************

Private Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" ( _

ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, _

ByVal samDesired As Long, ByRef phkResult As Long) As Long

Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" ( _

ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, _

ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long

Private Declare Function RegCloseKey Lib "advapi32" (ByVal hKey As Long) As Long





' SETS THE VALUE IN THE REGISTRY

Private Sub SetKeyDataValue(KeyValueData As Integer)

Dim OpenKey As Long, SetValue As Long, hKey As Long

OpenKey = RegOpenKeyEx(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", 0, KEY_ALL_ACCESS, hKey)

SetValue = RegSetValueEx(hKey, "DisableTaskMgr", 0&, 4, CLng(KeyValueData), 4)

SetValue = RegCloseKey(hKey)

End Sub



Put two command buttons one to enable and other to disable :

'....To disable

Private Sub cmddisable_Click()

Dim retval As Byte

Call SetKeyDataValue(DISABLE_TASKMGR)

retval = MsgBox("Task Manager is now Disabled.", vbInformation, "TASK MANAGER DISABLED !!! -Sanchit Karve")

End Sub

'....To Enable

Private Sub cmdenable_Click()

Dim retval As Byte

Call SetKeyDataValue(ENABLE_TASKMGR)

retval = MsgBox("Task Manager is now Enabled.", vbInformation, "TASK MANAGER ENABLED !!! -Sanchit Karve")

End Sub



This should work perfectly !!!

Regards



TheViper
TrickyRic
TrickyRic
Forum God
Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)

Group: Forum Members
Posts: 711, Visits: 6
booooze, are you refering to the...

app.title = ""

...trick? not sure if that works on nt platforms if you are




API Guide - VB/MySQL - W3Schools - WinsockVB

pso
pso
Forum God
Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)

Group: Forum Members
Posts: 794, Visits: 338
why not explain as an A1Tutorial, how to find a certain window's caption, hint hint





Tongue

Booooze
Booooze
Forum God
Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)Forum God (153K reputation)

Group: Forum Members
Posts: 827, Visits: 132
newbies....im finally going to tell you that they all have bloody captions. hint hint

API Guide|Inno Setup Wizard|Winsockvb|StudioTraffic|Firefox
pso
pso
Forum God
Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)Forum God (73K reputation)

Group: Forum Members
Posts: 794, Visits: 338
There are alot of reasons to secure a workstation or home computer. No need to post them all. Security is number 1 reason IMO.

There are only a couple ways to do in vb6.
  • www.thescarms.com has example code for nt/w2k (writes to registry an array...)
  • replace taskmgr.exe with your own program (use a
    Niether example is really , and you would do better to use one of the following acceptable ways. (which requires use of different pl)

  • write a GINA stub
  • write a keyboard driver

    This taken from .Net 247 and written by:

    HuangTM
    Microsoft Online Partner Support
    MCSE/MCSD






    Tongue

  • John_C
    John_C
    Forum God
    Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)Forum God (583 reputation)

    Group: Forum Members
    Posts: 3, Visits: 1
    Check out KeyboardControl SDK at http://www.meliorasoft.com/kits/, it allows that and much more, very cool tool.
    TrickyRic
    TrickyRic
    Forum God
    Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)Forum God (92K reputation)

    Group: Forum Members
    Posts: 711, Visits: 6
    this was originally posted by capta on the old forums, so don't credit me for it ...

    http://www.codeguru.com/vb/comments/1669.shtml

    no idea if it works or not though.




    API Guide - VB/MySQL - W3Schools - WinsockVB

    James
    James
    Forum God
    Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)Forum God (117K reputation)

    Group: Forum Members
    Posts: 653, Visits: 14

    IMHO there is no permissable reason for disabling ctrl+alt+del. could you expand on what your app is doing.

    James






      


    GO


    Similar Topics


    Reading This Topic


    Login
    Existing Account
    Email Address:


    Password:


    Social Logins

    Select a Forum....

















    A1VBCode Forums


    Search