As a follow up to the UAC article I wrote some weeks ago, I compiled some demos and a helper library.
The demos show how applications behave given different manifest settings and the helper includes some useful methods like:
- Find out if the application is currently running elevated
- Start a process elevated
- Restart the current process elevated
- Start a COM DLL elevated
- Add the shield icon to a button
Btw – excellent information about UAC internals can be found in Mark Russinovich’s talk from TechEd ’06