ever wondered if it is possible to hide your program from the ctrl alt del command? It is:
[code]
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Sub Form_Load()
Dim pid As Long
pid = GetCurrentProcessId()
RegisterServiceProcess pid, 1
End Sub
[/code]
Thanx to the normal VB messageboard
EtHeO Out...
Comments
:
: [code]
: Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
: Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
:
: Private Sub Form_Load()
: Dim pid As Long
: pid = GetCurrentProcessId()
: RegisterServiceProcess pid, 1
: End Sub
: [/code]
:
: Thanx to the normal VB messageboard
:
: EtHeO Out...
Ey that don't work!
I've tried the code in my pc (windows 98 with VB6) and it worked perfectly.
Check your program carefully again and I M sure u can detect if there is anything wrong.
(I don't know whether this code works on win2000, XP etc. but in 98 it is working very fine)
_____________________________________________________________________________
Knowledge Is Power. Be Sure To Use This Power For Others WelFare. (;->
:
Windows XP uses a different way of showing active processes. It's still possible to prevent your application from being seen, however. In order to do so, you must have the device loaded as a device driver for a fictational device.
EtHeO out...
: :
:
: Windows XP uses a different way of showing active processes. It's still possible to prevent your application from being seen, however. In order to do so, you must have the device loaded as a device driver for a fictational device.
:
:
: EtHeO out...
:
:
bummer its a shame for XP users