Results 1 to 6 of 6

Thread: Hide from CTRL+ALT+DEL in Win 2000

  1. #1
    HUS_ME
    Guest

    Hide from CTRL+ALT+DEL in Win 2000

    is there is a way to hide my app from CTRL+ALT+DEL in win2000??!



    HUS_ME@Yahoo.com

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Don't think so. Win2k is too clever for that.

    You could try this, but it didn't work for me.

  3. #3
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    I don't think so with VB, C++ can.

  4. #4
    j2k
    Guest
    How in C++?

  5. #5
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127

    Visual Basic

    VB Code:
    1. App.TaskVisible = False

    hides ur prog fromt the menu(not processes), doesn't disable it completely
    I'm a beginner.
    ------------------------------------------------
    Your impossible ego ***** is like a
    Megalomaniacal tab on my tongue
    You *****in' touch me I will rip you apart


  6. #6
    Junior Member
    Join Date
    Jul 2001
    Location
    Spain
    Posts
    21

    Visual Basic

    You can do it in 2 ways:

    1)The easiest method is probably by using the TaskVisible property of the App-object. If you set it to False, the task will be hiden from the CTRL-ALT-DEL-list. If you set it to True, your task will reappear again.
    'Hide from list
    App.TaskVisible = False
    'Show on list
    App.TaskVisible = True

    2)There is another, more complicated way to accomplish the same effect.
    You can register your program as a service. This is done by passing the process ID of your application to the RegisterService API.

    Declarations

    Copy the following code into the declarations section of a module:

    Public Declare Function GetCurrentProcessId _
    Lib "kernel32" () As Long
    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

    Procedures

    If you want to remove your program from the Ctrl+Alt+Delete list, call the MakeMeService procedure:

    Public Sub MakeMeService()
    Dim pid As Long
    Dim reserv As Long

    pid = GetCurrentProcessId()
    regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
    End Sub

    If you want to restore your application to the Ctrl+Alt+Delete list, call the UnMakeMeService procedure:

    Public UnMakeMeService()
    Dim pid As Long
    Dim reserv As Long

    pid = GetCurrentProcessId()
    regserv = RegisterServiceProcess(pid, _
    RSP_UNREGISTER_SERVICE)
    'End Code

    You must unregister your application as a service before it closes to free up system resources by calling UnMakeMeService.


    Tel

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