![]() They have to monitor their employee's activities in his/her computer. A UI is just for if a user needs to interact with it and that should be something that can be started and stopped as needed. If you have an app that needs to run constantly (no UI) then create a service (or perhaps use Task Scheduler). Not sure why you want a UI to always show up. An app must shut down when Windows starts its shutdown process otherwise users will get notified and that isn't good. When Windows shuts down all running processes also get notified to close and you do not want to prevent that. Note that it is important that if you do block a user from closing the app then you must ensure you look at the reason code. Again, any process can be terminated by an admin except OS trusted processes and that list is not changeable. ![]() Services can be terminated in Task Manager by an admin. But again an admin can kill the entire process via Task Manager, or via pskill or via TerminateProcess, etc. This would prevent a normal user from closing the app. You can configure any Windows app to ignore normal close requests by ignoring the request when receiving WM_CLOSE message to the main window. And no you cannot add to the trusted apps list. Given an admin they can kill any process except hose trusted apps that the OS defines. There is no such thing, outside an OS process, that cannot be killed in Task Manager. ![]() Services cannot have a UI so you cannot create a service with a UI. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |