[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Cntr Alt Del dialog box

How do I make it so my program doesn't show up in the control alt delete dialog box?
0
mrcool4444
Asked:
mrcool4444
  • 3
  • 2
1 Solution
 
Erick37Commented:
This only works for Win95/98, not NT

Private Declare Function RegisterServiceProcess Lib "kernel32" _
    (ByVal dwProcessId As Long, ByVal dwType As Long) As Long
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Const RSP_SIMPLE_SERVICE = 1
Const RSP_UNREGISTER_SERVICE = 0

Private Sub Form_Load()
'Disable Ctrl - Alt - Del:
Dim pid As Long
pid = GetCurrentProcessId()
Call RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub

Private Sub Form_Unload(Cancel As Integer)
'Enable Ctrl - Alt - Del:
Dim pid As Long
pid = GetCurrentProcessId()
Call RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
End Sub
0
 
mrcool4444Author Commented:
No, I don't want to disable control alt delete, I just don't want my program to show up in the list when you press control alt delete.
0
 
setiawanCommented:
Hi mrcool4444,

Have you tried Erick37 answers ?
It should be hide your vb program from task list (exactly like you want)

It won't disable CTRL+ALT+DEL


 danny
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
mrcool4444Author Commented:
Woops!!! I saw  disable control alt delete so I assumed.....repost your answer and I will accept it.  Sorry.
0
 
Erick37Commented:
Previous answer as answer :-)
0
 
mrcool4444Author Commented:
sorry once again
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now