Index: base/process/process_win.cc |
diff --git a/base/process/process_win.cc b/base/process/process_win.cc |
index 2c267aaa43f6fe29019ee0a911984d62b75d457a..3d192ca6c36a6b39d107f19b705d1ef6326afbe9 100644 |
--- a/base/process/process_win.cc |
+++ b/base/process/process_win.cc |
@@ -53,6 +53,11 @@ Process Process::OpenWithExtraPriviles(ProcessId pid) { |
return Process(handle); |
} |
+Process Process::OpenWithAccess(ProcessId pid, DWORD desired_access) { |
+ ProcessHandle handle = ::OpenProcess(desired_access, FALSE, pid); |
+ return Process(handle); |
cpu_(ooo_6.6-7.5)
2015/01/22 00:38:32
return Process(::OpenProcess(desired_access, FALSE
rvargas (doing something else)
2015/01/22 01:51:17
Done.
|
+} |
+ |
// static |
Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) { |
DCHECK_NE(handle, ::GetCurrentProcess()); |