|
|
Title | Hide a program from Ctrl-Alt-Del (Windows 95) |
Keywords | ctrl-alt-del, control-alt-delete, kill |
Categories | Utilities, Windows |
|
|
By Scott Hall.
Use API functions to register the program as a server process. This does not seem to work in Windows NT.
|
|
Private Declare Function GetCurrentProcessId Lib "kernel32" _
() As Long
Private Declare Function GetCurrentProcess Lib "kernel32" _
() As Long
Private Declare Function RegisterServiceProcess Lib _
"kernel32" (ByVal dwProcessID As Long, ByVal dwType As _
Long) As Long
Private Sub chkVisible_Click()
taskVisible chkVisible.Value = 1
If chkVisible.Value = 1 Then
Caption = "Visible To Ctrl+Alt+Del"
Else
Caption = "Invisible To Ctrl+Alt+Del"
End If
End Sub
Private Sub Form_Load()
taskVisible False
End Sub
Public Sub taskVisible(visible As Boolean)
Dim lI As Long
Dim lJ As Long
lI = GetCurrentProcessId()
If Not visible Then
lJ = RegisterServiceProcess(lI, 1)
Else
lJ = RegisterServiceProcess(lI, 0)
End If
End Sub
|
|
Rob Crombie discovered that setting App.TaskVisible to False hides the application from the task list in Windows XP Home edition, even when the form is visible and in the Taskbar. In Windows 98 SE it seems you cannot hide the application from the task list.
|
|
|
|
|
|