C++: Communication with elevated child process on Windows
问题 I'm having the following setup: The DLL I'm writing is loaded dynamically at runtime and offers some API-like functionality to the host application. The host application is not running with admin rights (and therefor my DLL isn't either). Some tasks my DLL needs to fulfill need admin rights though, specifically I have to save and copy files to the program files folder. My current approach is to launch external applications via ShellExecute and the "runas" verb, which triggers the UAC prompt.