0

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.

Community
  • 1
  • 1
Jichao
  • 38,362
  • 43
  • 118
  • 192
  • That, and far too vague.What is thr return value and error reported by `CreateProcess()`? You'll probably find it's "Elevation required" which means you need to use `ShellExecute()`. – Deanna Aug 08 '12 at 15:22

1 Answers1

0

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.

dashesy
  • 2,455
  • 3
  • 45
  • 58