Possible Duplicate:
How can I run a child process that requires elevation and wait?
CreateProcess does not works, the UAC dialog does not even show up.
Possible Duplicate:
How can I run a child process that requires elevation and wait?
CreateProcess does not works, the UAC dialog does not even show up.
If you are using Visual Studio, the easiest method is this; under project properties, under Linker section set "UAC Execution Level" to requireAdministrator. You can manually create a manifest file if you are using another build environment.