I'm trying to find a way to determine if a process is setup to run as administrator without the process running. All solutions I've been able to find are for determining if the current user is able to run a process as administrator or to check if a current running process is running in administrator mode. I want to be able to check on a process that is not running, but to be able to determine that in it's Properties > Compatibility Properties > the 'Run this program as an administrator' flag is checked.
Before this gets marked as a duplicate question, I've checked here: C# Check if run as administrator
Here: Detect if running as Administrator with or without elevated privileges?
Here: Detect if another process is started as "Run as Administrator"
As well as most other related questions.
A lot of these question answer whether or not the current user has administrator privileges for a specified process.
Other questions answer whether or not a current process is running in administrator mode or not.
I want to be able to detect if a process, that is not currently running, has the 'Run this program as an administrator' flag checked within compatibility settings.
Thanks for any help in advance!