Prevent users from stopping a process

后端 未结 2 1774
深忆病人
深忆病人 2021-01-29 16:31

Long story short, I need to create an application that monitor the sound volume on a computer. The computer\'s user must not be able to stop the application no matter what.

2条回答
  •  迷失自我
    2021-01-29 16:58

    In general, the only programs that act like that are malicious (e.g. rootkits). If you think about it, you really wouldn't want programs to be able to act like that.

    As others have indicated, the closest you'll get here is a Windows Service, which automatically starts with Windows. Average users won't know to stop it, but it's still possible to stop it manually for power users.

    One work-around you could try is to periodically have it call a web service to verify that it's running. That way you could tell who might have uninstalled or stopped the service. (The problem, of course, is that they might just not have their computer on or something; you could have separate calls for "Start" and "Still On").

    Alternatively, if this installed only on computers that are exclusively under your direct control, as others have indicated, you could configure things so that you need administrative access to stop the process. This option was addressed in the comments.

提交回复
热议问题