开发者

How to create invincible windows application using c# and windows services

I wrote a windows form application running in my local system. I wanna make it invictible. I mean, I want to the users cannot kill the process using task manager or any other third party application. So I wrote a windows service to run this application on startup开发者_StackOverflow社区. I thought I need to run windows service as SYSTEM but how can I do that ?

Is there any spesific suggestion for this kind a situation ?


I also had the same problem with an application at work, which the users shouldn't be able to close.

You have to allow the servie Allow service to interact with desktop. Heres an example how to do this while installing the service: http://www.codeproject.com/KB/install/cswindowsservicedesktop.aspx

Now you are able the launch a GUI application from the service, for the current logged in user. You should look in a intervall if the process for the current user is still running, if not just start it again.

See here for current user processes: http://www.codeproject.com/KB/cs/processownersid.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜