Re: Elevating via UAC in C++



Hi NickP!
I know that I can cause the UAC to be evoked for an entire process, but I would like to be able to display the UAC before I call a particular function in my code, is this possible? Or can you only elevate the entire application?

You can only elevate the whole process...

You you could "re-execute" your process with ShellExecute and "RunAs"... this will trigger the UAC Dialog... and starts your program again...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
.



Relevant Pages

  • Re: Any way to gray out whole screen as in Vistas UAC?
    ... I want to display a security dialog to users, in the same way UAC ... dialogs are presented in Vista's UAC: the whole screen grayed out and ...
    (microsoft.public.win32.programmer.ui)
  • Elevating via UAC in C++
    ... Hey there, ... I would like to be able to display the UAC before I call a particular ... Nick. ...
    (microsoft.public.vc.language)
  • Any way to gray out whole screen as in Vistas UAC?
    ... I want to display a security dialog to users, in the same way UAC ... dialogs are presented in Vista's UAC: the whole screen grayed out and ...
    (microsoft.public.win32.programmer.ui)
  • Re: Search for word or phrase in .pas & .dfm files
    ... windows explorer in vista? ... Click Show All Locations (elevate if UAC is enabled) ... Find and select DFM files ...
    (borland.public.delphi.non-technical)
  • Re: Elevating via UAC in C++
    ... That's a pretty good idea as I the code I want to execute is right ... on entry point. ... You can only elevate the whole process... ... this will trigger the UAC Dialog... ...
    (microsoft.public.vc.language)