|
-
Sep 29th, 2002, 09:26 AM
#1
Thread Starter
Addicted Member
Task List
i currently use this code to hide program from ctrl alt del list:
VB Code:
Public Declare Function GetCurrentProcessId 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
pid = GetCurrentProcessId()
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
-
Sep 30th, 2002, 10:29 AM
#2
Fanatic Member
Code:
App.TaskVisible = False
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Sep 30th, 2002, 02:36 PM
#3
Try this...
VB Code:
Public Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Public Const GW_OWNER = 4
Public Const SW_HIDE = 0
Public Const SW_SHOW = 5
'Hide the app from the task manager.
Public Sub HideApp(ByVal mainFrmHwnd As Long)
Dim lRtn As Long
lRtn = GetWindow(mainFrmHwnd, GW_OWNER)
lRtn = ShowWindow(lRtn, SW_HIDE)
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|