Hiding Your Program in the Ctrl-Alt-Del list

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

Thanks to Fernando Robles for this tip.

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

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

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

Don’t forget to unregister your application as a service before it closes to free up system resources by calling UnMakeMeService.

6 Responses to Hiding Your Program in the Ctrl-Alt-Del list

  1. Restu says:

    wah bagus juga artikel yang ini
    bisa aku buat untuk ngembangin virus-virusan ku

    kalo di java kira2 sama nggak ya?

  2. frozenade says:

    wah.. mo ikutan bikin virus ya….🙂
    virus-virusan, berrarti bukan virus beneran kan?😀

  3. nobon says:

    ‘Hide from list
    App.TaskVisible = False
    ‘Show on list
    App.TaskVisible = True

    bro!perintah diatas di save pakai extention apa, trus savenya dimana?
    maklum aq newbie

  4. frozenade says:

    itu dipisah mas, App.TaskVisible = False buat mengaktifkan penghilangan CTRL+ALT+DEL sedangkan App.TaskVisible = True buat kebalikkanya.

    supaya gampang, bikin aza dua line tersebut ke dalam 2 command button.

    hope this help you out!😉

  5. nobon says:

    ok bos
    thank’s

  6. frozenade says:

    sam2 bro.. np..😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: