PDA

Click to See Complete Forum and Search --> : Stealth


Dayo312
Jan 28th, 2000, 12:05 AM
How could I make my program unable to be seen from ALt+Ctrl+del??

Thanks

QWERTY
Jan 28th, 2000, 12:17 AM
'Declarations
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Public Declare Function GetCurrentProcess Lib "kernel32" () As Long
Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal
dwProcessID As Long, ByVal dwType As Long) As Long
Public Const RSP_SIMPLE_SERVICE = 1
Public Const RSP_UNREGISTER_SERVICE = 0

'Code:
'To remove your program from the Ctrl+Alt+Delete list, call the
MakeMeService Procedure:
Public Sub RemoveProgramFromList()
Dim lngProcessID As Long
Dim lngReturn As Long

lngProcessID = GetCurrentProcessId()
lngReturn = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub

'To restore your application to the Ctrl+Alt+Delete list, call the
UnMakeMeService Procedure:
Public Sub AddProgramToList()
Dim lngProcessID As Long
Dim lngReturn As Long

lngProcessID = GetCurrentProcessId()
lngReturn = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
End Sub

HTH

------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.

seaweed
Jan 28th, 2000, 08:17 AM
Someone told me that this one line of code will achieve the same thing...I haven't had time to test it out yet, so let me know if it works...

app.taskvisible = False

Good luck.

QWERTY
Jan 28th, 2000, 08:55 AM
It really seems to work. I'm scared. :)

------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.

jameskbyrd
May 18th, 2000, 09:30 PM
well, not exactly, it only hides it from application list. The program will still be visible in the processes list (in NT)