VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Disables the program in CTRL-ALT-DEL list.

Bird  (7 Submissions)   Registry   VB 6.0   Unknown Difficulty   Tue 6th May 2003   Mon 8th February 2021

Disables the program in CTRL-ALT-DEL list.

API Declarations


Const RSP_UNREGISTER_SERVICE = 0
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Public Sub MakeMeService()
Dim pid As Long, reserv As Long
'Get the current process ID
pid = GetCurrentProcessId()
'Register as service
regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub
Public Sub UnMakeMeService()
Dim pid As Long, reserv As Long
'Get the current process ID
pid = GetCurrentProcessId()
'Unregister as service
regserv = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
End Sub

Rate Disables the program in CTRL-ALT-DEL list. (2(2 Vote))
Disables the program in CTRL-ALT-DEL list..bas

Disables the program in CTRL-ALT-DEL list. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters