diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 17:01:36 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 17:01:36 +0000 |
commit | 6c6cc80b2463e75d94ebb0d392ccf54761374a64 (patch) | |
tree | 027e484cadfabddc197efe4ccab1567bc6cb9b0f /base/process_util.h | |
parent | ded5e4e7e6bc7c7d4d16223929dbb0f69fc8add0 (diff) | |
download | chromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.zip chromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.tar.gz chromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.tar.bz2 |
Make OpenProcessHandle report an error when it couldn't open the handle.
One more step to land http://codereview.chromium.org/54003 (chrome_process_util).
Review URL: http://codereview.chromium.org/62004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/process_util.h b/base/process_util.h index 286330b..615e5b6 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -68,8 +68,8 @@ ProcessId GetCurrentProcId(); ProcessHandle GetCurrentProcessHandle(); // Converts a PID to a process handle. This handle must be closed by -// CloseProcessHandle when you are done with it. -ProcessHandle OpenProcessHandle(ProcessId pid); +// CloseProcessHandle when you are done with it. Returns true on success. +bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle); // Closes the process handle opened by OpenProcessHandle. void CloseProcessHandle(ProcessHandle process); |