Krishna Thota
Krishna Thota

Reputation: 7076

Hide a Windows Application Process from TaskManager

I'm creating an Application which requires a Password to Exit.

so I disabled the close button and removed from TaskBar.

I'm also able to remove from TaskManager Applications Tab. But when I search in TaskManagers Processes tab, It is visible in it and the I'm able to end the process thus end the application from there. So I need to hide the Process even from there.

Can you help me in Doing this??

Upvotes: 2

Views: 5367

Answers (1)

Sarrus
Sarrus

Reputation: 641

Look at this topic: How can I keep Task Manager from killing my program? someone asked for same thing.

The best answer:

AV Programs like Kaspersky probably use a driver and use hook to prevent termination. In your situation I would advise to set an ACL on the process, this prevents termination with Task Manager or cmdline tools (if the user does not have the Debug privilege). Of course the user can always use a tool like Process Explorer, take ownership of the process, set new ACL and Terminate.

If the user is not an administrator it would suffice to run the process in a different user context (eg launch it from a service).

Here some information on msdn: http://msdn.microsoft.com/en-us/library/windows/desktop/ms684880(v=vs.85).aspx

Upvotes: 1

Related Questions