Index: base/process_util.h |
diff --git a/base/process_util.h b/base/process_util.h |
index 9eb8690dc53fafab4facbfbe4431636e4729537b..8a2e87b20f9e7e2e2893f27aa3b3c8f5fb391021 100644 |
--- a/base/process_util.h |
+++ b/base/process_util.h |
@@ -71,6 +71,12 @@ ProcessHandle GetCurrentProcessHandle(); |
// CloseProcessHandle when you are done with it. Returns true on success. |
bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle); |
+// Converts a PID to a process handle. On Windows the handle is opened |
+// with more access rights and must only be used by trusted code. |
+// You have to close returned handle using CloseProcessHandle. Returns true |
+// on success. |
+bool OpenPrivilegedProcessHandle(ProcessId pid, ProcessHandle* handle); |
+ |
// Closes the process handle opened by OpenProcessHandle. |
void CloseProcessHandle(ProcessHandle process); |