PDA

Click to See Complete Forum and Search --> : how cna i hide my program form showing up in the rtl alt delete thing ?????


XxEvilxX
Dec 11th, 1999, 06:09 AM
how cna i hide my program form showing up in the crtl alt delete thing ?????

rino_2
Dec 11th, 1999, 06:16 AM
Just Disable CTRL+ALT+DEL with this code:

In the General:

Option Explicit
Const SPI_SCREENSAVERRUNNING = 97
Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

In the form activate:

Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, "1", 0)

Bob Baddeley
Dec 11th, 1999, 07:59 AM
to disable just ctrl-alt-del and not the other things like alt-f4 and alt-tab and all that, put in this code:

Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long

Private Sub Form_Unload(Cancel As Integer)
Call RegisterServiceProcess(0&, 0&)
End Sub

Private Sub Form_Load()
Call RegisterServiceProcess(0&, 1)
End Sub