VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Remove application from CTRL-ALT-DEL list

by Anonymous (267 Submissions)
Category: Windows System Services
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Mon 1st November 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Remove application from CTRL-ALT-DEL list

API Declarations


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

Rate Remove application from CTRL-ALT-DEL list



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

Download this snippet    Add to My Saved Code

Remove application from CTRL-ALT-DEL list Comments

No comments have been posted about Remove application from CTRL-ALT-DEL list. Why not be the first to post a comment about Remove application from CTRL-ALT-DEL list.

Post your comment

Subject:
Message:
0/1000 characters