Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Unified Diff: base/process/launch.h

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolves review feedback. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/launch_win.cc » ('j') | content/browser/ppapi_plugin_process_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/launch.h
diff --git a/base/process/launch.h b/base/process/launch.h
index ac2df5eee5f751c3c718190a62db078dbc826835..48ffa5eb713a27b555bf815713d4b4614153d8c6 100644
--- a/base/process/launch.h
+++ b/base/process/launch.h
@@ -215,6 +215,17 @@ 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 like OpenProcess will fail. The process will
+// be available through the |process_handle| argument. Currently the only
+// option that is supported from LaunchOptions are |start_hidden| and |wait|.
+BASE_EXPORT bool LaunchElevatedProcess(const CommandLine& cmdline,
Robert Sesek 2014/02/03 22:30:22 There's already a OS_WIN specific Launch function
Drew Haven 2014/02/04 21:25:54 Done.
+ const LaunchOptions& options,
+ ProcessHandle* process_handle);
+#endif
} // namespace base
#endif // BASE_PROCESS_LAUNCH_H_
« no previous file with comments | « no previous file | base/process/launch_win.cc » ('j') | content/browser/ppapi_plugin_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698