Simple question, but couldn't find anything useful. I need to iterate through files and check wheter they have administrator privileges. But remember, the the file is not running, so i need to basicly check if the software has 'run as administrator' checkbox set 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 runtime is the actual 'real' way the file behaves.