From 6aa9349ef5c1110d9c096945840e6a105e8a8295 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 9 Apr 2009 22:44:57 +0000 Subject: Replace chrome_process_filter with chrome_process_util. - move code only used by tests to chrome/test - make a better, more portable abstraction For now, it still only works on Windows. But this is the first step to porting this part of code. Patch by phajdan.jr@chromium.org: Review URL: http://codereview.chromium.org/67004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13476 0039d316-1c4b-4281-b951-d872f2087c98 --- base/process_util_win.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'base/process_util_win.cc') diff --git a/base/process_util_win.cc b/base/process_util_win.cc index 955c086..2fe9a00 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -34,7 +34,10 @@ ProcessHandle GetCurrentProcessHandle() { } bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) { - ProcessHandle result = OpenProcess(PROCESS_DUP_HANDLE | PROCESS_TERMINATE, + ProcessHandle result = OpenProcess(PROCESS_DUP_HANDLE | + PROCESS_TERMINATE | + PROCESS_QUERY_INFORMATION | + SYNCHRONIZE, FALSE, pid); if (result == INVALID_HANDLE_VALUE) -- cgit v1.1