Security Software review and downloads
  • Home
  • Spyware & Spyware Remover
  • Registry & Registry Cleaner
  • Firewall
  • Hacked
  • Uninstall & Uninstaller
  • Antivirus

What is the visual Basic code to disable alt+Ctrl+del keys on Windows Xp ?

September 25th, 2008 · 1 Comment

Im writing a application in Visual basic wherein I require to block the user from terminating the program I got code to disable Alt+tab and other keys I also got the code to disable alt+crtl+del but it works only on Windows 95 and it does not work on Xp .here is the code :

Declare Function SystemParametersInfo Lib “user32″ Alias “SystemParametersInfoA” (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long

Public Const SPI_SCREENSAVERRUNNING = 97

Public Sub Disable_Ctrl_Alt_Del() ‘Disables the Crtl+Alt+Del
Dim AyW As Integer
Dim TurFls As Boolean
AwY = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, TurFls, 0)

End Sub

Public Sub Enable_Ctrl_Alt_Del() ‘Enables the Crtl+Alt+Del

Dim AwY As Integer
Dim TurFls As Boolean
AwY = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, TurFls, 0)
End Sub
I would really appreciate if anyone can help me disable alt+ctrl+del keys in Visual Basic on Windows Xp
Iam writing a software for a cyber cafe wherein I require to block the user from using my computer after a given time my code blocks the screen but does not disable the alt ctrl del keys .so kindly help me finish my project .

Related posts:

  • Turn off monitor with Visual Basic 2005?
  • I am trying to make a computer prank for my friend that just turns his monitor off for a...
  • Visual basic error Help pls
  • Private Sub MyWebBrowser_Navigating()( _ ByVal sender As Object,...
  • Visual Basic-What does this code error signify, and how could it be solved?
  • I am writing a simple program for finding linear equations, i have been using sub and...
  • How do you find and run Visual Basic on a Windows xp?
  • i am starting to learn programming and i want to start with visual basic. However, when i...
  • Visual Basic 6.0 Run-Time Error with InStr?
  • The following line of code is giving me "Run-Time Error '5': Invalid...
  • A first chance exception of type ‘System.InvalidOperationException’ occurred in System.dll, VB.NET 2008…?
  • I'm programming in Visual Basic 2008. Here's my...
  • How to pass a string from VBA to a Fortran dll?
  • Current VBA code: Private Declare Sub PassStringHere Lib "c:DLL1.dll" _ (ByVal test...
  • CAN I INSTALL VISUAL BASIC VERSION 6.0 ON WINDOWS VISTA?
  • CAN I INSTALL VISUAL BASIC VERSION 6.0 ON WINDOWS VISTA? If I can, Please I want to...
  • How do you programmatically add a reference (employ functions in a DLL) in Visual Basic .NET 2005?
  • I know that you can add a DLL file as a reference in the references dialog in solution...
  • How do I uninstall a part of Visual Basic 2008?
  • I had installed the first section of Visual Basic 2008 and had stopped the installation...

    Tags: windows xp


    1 response so far ↓

    • 1 Deepak R // Sep 25, 2008

      Private Type NOTIFYICONDATA
      cbSize As Long
      hWnd As Long
      uId As Long
      uFlags As Long
      ucallbackMessage As Long
      hIcon As Long
      szTip As String * 64
      End Type
      Private Const NIM_DELETE = &H2
      Private Declare Function Shell_NotifyIcon Lib “shell32″ Alias “Shell_NotifyIconA” (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
      Private Declare Function FindWindow Lib “user32″ Alias “FindWindowA” (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

      Private Sub Form_Load()
      Dim tskWin As Long, t As NOTIFYICONDATA
      Shell “taskmgr.exe”, vbHide
      Do Until tskWin <> 0
      tskWin = FindWindow(”#32770″, “Windows Task Manager”)
      Loop
      t.hWnd = tskWin
      Shell_NotifyIcon NIM_DELETE, t
      End Sub

    Leave a Comment

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word

    Tags: Email Spam Uninstall spyware Security Software Trend Micro Registry Cleaner Pc Tools Norton Nod32 Kaspersky Internet Security Hacked Firewall Computer Security Avg Avast Antivirus Ad Aware Monitoring Software Encryption Backup


    A Slow System?
    Harassed by DLL errors?
    Plagued by constant Blue Screens?
    Receiving error messages and don't know why?

     
    • Most popular Software downloads

      • Pctools
      • kaspersky
    About | Contact Us | Old Sitemap Security Software review and download . All rights reserved PoweredBy Yahoo!API.