VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Disables the program in CTRL-ALT-DEL list.

by Bird (7 Submissions)
Category: Registry
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 6th May 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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.



    'KPD-Team 1999
    'URL: http://www.allapi.net/
    'E-Mail: [email protected]
    MakeMeService
    'Right now, you're program is hidden from the CTRL-ALT-DEL-list
End Sub
Private Sub Form_Unload(Cancel As Integer)
    UnMakeMeService
End Sub

Download this snippet    Add to My Saved Code

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

No comments have been posted about Disables the program in CTRL-ALT-DEL list.. Why not be the first to post a comment about Disables the program in CTRL-ALT-DEL list..

Post your comment

Subject:
Message:
0/1000 characters