I have a console app that works with monitoring all windows processes, waits for a specific one to appear and then work with it using UI Automation. It is only distributed to people who need it and are willing to install it so it does not do anything malwareous.
Right now it works by requiring admin rights so that it can monitor all processes and capture that specific one. The problem we face however, are users using desktop virtualization software like Citrix. They do not have admin rights, and cannot be granted any for security precautions.
Three alternatives that came to my mind were:
I was wondering if there was anything that could be done to solve this/bypass it. So far i couldn't find a way to capture a desired process without admin rights
Just use a Windows Service (as admin) and your desktop application.
The Windows service executes everything that needs admin priveleges and the desktop application takes care of the UI tasks. The programs can communicated over named pipes, shared memory or a loopback network socket.
Make sure to secure the inter-process-communication. Another user process should not be able to use the admin priveleges of your service.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.