Simple question, but couldn't find anything useful. I need to iterate through files and check whether they have administrator privileges. But remember, the file is not running, so I need to basically check if the software has a 'run as administrator' checkbox set to true or false. Probably this has something to do with attributes I guess. So, how could I achieve that? (I have no idea...)
Edit: I found another way to do this, I did not test it yet. To start the file as a process, immediately (without Thread.Sleep or any operations) suspend the newly created process' main thread. Then a process is easier to check for elevated rights than a simple file because the runtime is the actual 'real' way the file behaves.