And for the hat-trick.....
I'm modifying a C# program which needs UAC on vista (as it needs registry access) and i'm having problems.
When it initially launches it launches from a C++ program which is set to ask for UAC, so it automatically runs as elevated.....however after a computer re-start (which is often required) the C# program automatically re-launches at the point where it left off......but it doesn't give the UAC prompt and so it can't access the registry and throws up errors.
I don't have access to it now, but my work-around was to right click on the second program and click the "run as administrator" box, so that it always forces the UAC prompt when it loads.......however i'm sure there must be an easier way
I'm using Visual Studio 2008.....is there some way to compile a program such that it will require UAC? Like a setting or something? Or is my best bet to go for what I was thinking?
Thanks in advance