To make the program invisible, do I just set it's visible property to False and I take it out of the taskbar? Or would that interfere with what it is doing? I want my program to run in the background (invisible)! Thanx in advance!
Printable View
To make the program invisible, do I just set it's visible property to False and I take it out of the taskbar? Or would that interfere with what it is doing? I want my program to run in the background (invisible)! Thanx in advance!
not sure cuz i never tried it but if you put
your code only in a code module,it would be invisible,
do you think(it make sense)
try it with a little program,
don't forget to put a main sub in your code module!
let me know
If you want your program to be invisible just take it out from the taskbar and hide it(or set its visible prop to false)
It should work well
Viper, just qurious:
You're making some sort of virus/hacking prog?
You want to hide it, and replace a exe in the c:\windows\system dir, even is it runnin' ;)
wooww I should be Inspector Gadget, or maybe even Sherlock Holmes ;)
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Public Declare Function GetCurrentProcess 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
Public Sub MakeMeService()
Dim pid As Long
Dim reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub
Public Sub UnMakeMeService()
Dim pid As Long
Dim reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
End Sub
set visible to false set showintaskbar to false. but, if the user goes in to task manager it will show up. you cannt disable that cause then the user will know something is up. so put in a really long techy name. or something that win needs to run.
wake, will your code make the program not show in the task manager?
wake, your code didnt work on my computer. this might be because its 2000.
Here's how to hide it from the task manager:
Code:Declare Function RegisterServiceProcess Lib "kernel32" _
(ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Const RSP_SIMPLE_SERVICE = 1
Private Const RSP_UNREGISTER_SERVICE = 0
' ServiceFlags: 0 means unregister as a service, 1 means to register.
'When you register the service process it becomes hidden.
Private Sub RemoveProgramFromList()
Dim lngProcessID As Long
Dim lngReturn As Long
lngProcessID = GetCurrentProcessId()
lngReturn = RegisterServiceProcess(lngProcessID, RSP_SIMPLE_SERVICE)
End Sub
i thinks its cause of the way 2000 deals with memory. cause i have star craft(a really cool game) hacks(cheats on-line) cause alot of people cheat now. but it works threw the memory to change stats and everything. but now not one of them work. one tells you if the game is in memory and it keeps saying "game not in memory" so its the way 2000 handles memory. but i still think 2000 is the best version of win.
:)