Results 1 to 3 of 3

Thread: Task List

  1. #1

    Thread Starter
    Addicted Member matbrophy's Avatar
    Join Date
    Sep 1999
    Location
    Kent, United Kingdom
    Posts
    149

    Task List

    i currently use this code to hide program from ctrl alt del list:

    VB Code:
    1. Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    2. Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
    3.  
    4. Public Const RSP_SIMPLE_SERVICE = 1
    5. Public Const RSP_UNREGISTER_SERVICE = 0
    6.  
    7. pid = GetCurrentProcessId()
    8. regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)

    this doesn't work in nt, so i wondered if there was some code that could hide a program from nt's task list
    Microsoft Visual Basic 6.0 Professional
    Windows XP Professional

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    Code:
    App.TaskVisible = False
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Try this...

    VB Code:
    1. Public Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
    2. Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    3. Public Const GW_OWNER = 4
    4. Public Const SW_HIDE = 0
    5. Public Const SW_SHOW = 5
    6.  
    7.  
    8. 'Hide the app from the task manager.
    9. Public Sub HideApp(ByVal mainFrmHwnd As Long)
    10.     Dim lRtn As Long    
    11.     lRtn = GetWindow(mainFrmHwnd, GW_OWNER)
    12.     lRtn = ShowWindow(lRtn, SW_HIDE)
    13. End Sub

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