Index: base/process/launch.h |
diff --git a/base/process/launch.h b/base/process/launch.h |
index ac2df5eee5f751c3c718190a62db078dbc826835..cb8afd626e47b6d637bccc7d68ad29a96fa34bf4 100644 |
--- a/base/process/launch.h |
+++ b/base/process/launch.h |
@@ -215,6 +215,18 @@ BASE_EXPORT void RaiseProcessToHighPriority(); |
void RestoreDefaultExceptionHandler(); |
#endif // defined(OS_MACOSX) |
+#if defined(OS_WIN) |
+// Launches a process with elevated privileges. This does not behave exactly |
+// like LaunchProcess as it uses ShellExecuteEx instead of CreateProcess to |
+// create the process. This means the process will have elevated privileges |
+// and thus some common operations liie OpenProcess will fail. The process will |
mef
2013/12/18 21:02:10
nit: like
Drew Haven
2014/01/09 01:15:14
Done.
|
+// be available through the |process_handle| argument. Currently the only |
+// option that is supported from LaunchOptions is start_hidden. |
+BASE_EXPORT bool LaunchElevatedProcess(const CommandLine& cmdline, |
+ const LaunchOptions& options, |
+ ProcessHandle* process_handle); |
+#endif |
+ |
} // namespace base |
#endif // BASE_PROCESS_LAUNCH_H_ |