Click to See Complete Forum and Search --> : Hiding windows from the alt+tab & ctrl+alt+delete windows
Cease
Jul 12th, 2000, 11:43 AM
Okay im making a program that hides windows, basically anyway, and when a window is hidden i want it to be hidden from the alt+tab & ctrl+alt+delete windows, is there an api which i can use which i onlt need the windows hWnd for???
Thanx
Dim
Jul 12th, 2000, 12:12 PM
app.taskvisible = False
will hide your appl in the menu, i would assume that you would have to use app as a string and have the string equal a textbox value that will contain the user writen caption (title bar caption) of the program that he/she wants to hide.
=/ i dunno if that will work, but it's something to think about.
Gl,
D!m
PS. you might wanna look at http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?lngWId=1&txtCodeId=7015 It can help you also.
[Edited by Dim on 07-12-2000 at 01:14 PM]
Cyberprog
Jul 13th, 2000, 01:09 PM
There are several ways to hide from windows... one is to use the app.taskvisible=false, but that doesn't work under windows nt/2000.
The next is to use the code available on planet-source-code... but it's buggy and sometimes will not work.
The best way is to go to System Internals I think they're called (it's system something... I'll check when I go home) and use their service manager thingy. This *WILL* hide your app reliably... but you have to pay.
Such is the cost of secrecy.
Paul Warren
Jul 14th, 2000, 09:56 AM
Here's something I've used before but I don't know if it works under NT/2000 :
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Private Const RSP_SIMPLE_SERVICE = 1
Public Sub MakeMeService()
' Ha, Ha can't see me
Dim pid As Long
Dim regserv As Long
' Pretty simple really
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub
I'm sure this could be adapted to hide other applications.
Cease
Jul 18th, 2000, 08:34 AM
Thanx for tha above i havent had time to try it out yet, but i was just woundering if you could adapt or use this to hide OTHER apps from the menus????
Any ideas?
Thanx
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.