views:

698

answers:

4

I am creating windows service in desktop while running its showing on task manager . So is there any api or any procedure for hide service diagrammatically.can you pls send some sample code for service which can hide from task manager .

+4  A: 

No. TaskManager is designed to list the applications running. You cannot legitimately hide an app from TaskManager Processes tab.

You could give your app a clever name to disguise it. But really, there's a security reason that all processes will be listed.

marcc
Technically, the answer isn't "No", but I don't think there is a legitimate reason for wanting this. We'll see.
Noon Silk
Thanks for quick response. So is there any windows service api which can help me for hide service from windows task manager.Thnaks,Kamal Ku Behera.
Kamal
He just said it can't be done.
Soviut
+1  A: 

I don't think that there is a way to do this as it will always show up as a process and indeed you'll also need to hide it from the Administrator/Services app. in which case it won't be a windows service as all services must register with the Service Manager in order to run.

The only way in which this could be achieved is by running at the BIOS level or as a separate kernal within which you run the Windows OS.

If you're trying to prevent people from stopping your service then write two services that mutually support each other i.e. automatically kicks off the other service if the first is stopped.

ChrisBD
A: 

You could write a device driver, they aren't listed in the normal "running processes" lists, only in device manager.

Blindy
A: 

lol, why everybody think about malware when somebody ask things like this, theres many legit applications where you can use this, is about to think a bit more i needed this one time and it was for a cybercoffee software, not showing the client aplication being listed on the task administrator prevent the clients break the control program and go with a longer session. just think

regula
An application run under the administrator account already cannot be killed by regular users.
MikeD