Results 1 to 3 of 3

Thread: windows tasklist

  1. #1
    TheSarlacc
    Guest
    how do i get my program to not show up when the user presses Ctrl+Alt+Del?

  2. #2

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Code:
    Const RSP_SIMPLE_SERVICE = 1
    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
    Private Sub Form_Load()
        '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
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width