I am looking for a way to verify that a remote process has administrator rights from my (fully managed) code. It is safe to assume that my code will be run with administrator privileges, so I do not care how invasive the method is to achieve my goal, however I am looking for a fully managed way that should be compatible with XP SP3 x86 all the way down to win7 x64.
Thanks in advance!
Edit : to clarify, I'm talking about a process running on the same computer, regardless of the user who launched it. I want to make sure that either the identifier associated with the process belongs to the Administrators group, or that the main thread has full rights, with special respect for the inheritance of descriptors opened by elevated processes, and writing to the storage without any restrictions, except for those which apply to processes generated by the option "Run as administrator".
source
share