Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleHide a program from Ctrl-Alt-Del (Windows 95)
Keywordsctrl-alt-del, control-alt-delete, kill
CategoriesUtilities, 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.
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated