I’m trying to use reflection to have a program look at itself and determine whether a certain control triggers UAC. I’d either like to be able to see that the event handler on the button creates a privileged process or to check whether a given button has the UAC shield enabled on it. Is this possible?
Share
It should be possible to write something like what you are asking for using cciast.codeplex.com.
CCIAST lets you decompile methods. That way you can find out if the method runs a potentially priviliged process.
But depending on your software it might not produce the results you are hoping for.
Best, if possible, would probably be to refactor to only launch priviliged processes from a small and known set of methods and then use refactoring tools to find how uses them.