Re: Elevating via UAC in C++
- From: "NickP" <a@xxxxx>
- Date: Thu, 17 Jan 2008 09:29:45 -0000
Hey Jochen,
Aah! That's a pretty good idea as I the code I want to execute is right
on entry point.
Cheers for the tip! :)
Nick.
"Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@xxxxxxxxx> wrote in message
news:uhRf7xGWIHA.3532@xxxxxxxxxxxxxxxxxxxxxxx
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/
.
- References:
- Elevating via UAC in C++
- From: NickP
- Re: Elevating via UAC in C++
- From: Jochen Kalmbach [MVP]
- Elevating via UAC in C++
- Prev by Date: Re: compile error about void*
- Next by Date: Re: compile error about void*
- Previous by thread: Re: Elevating via UAC in C++
- Next by thread: Re: compile error about void*
- Index(es):
Relevant Pages
|