Index: base/process/process.h |
diff --git a/base/process/process.h b/base/process/process.h |
index d556d8e0981a54180a32093259d6e972184860c8..70aca6da172ba0fb409151be0072c5d72d0c7284 100644 |
--- a/base/process/process.h |
+++ b/base/process/process.h |
@@ -54,6 +54,12 @@ class BASE_EXPORT Process { |
// address space and duplicate handles). |
static Process OpenWithExtraPriviles(ProcessId pid); |
+#if defined(OS_WIN) |
+ // Returns a Process for the given |pid|, using some |desired_access|. |
+ // See ::OpenProcess documentation for valid |desired_access|. |
+ static Process OpenWithAccess(ProcessId pid, DWORD desired_access); |
+#endif |
+ |
// Creates an object from a |handle| owned by someone else. |
// Don't use this for new code. It is only intended to ease the migration to |
// a strict ownership model. |
@@ -74,7 +80,7 @@ class BASE_EXPORT Process { |
Process Duplicate() const; |
// Get the PID for this process. |
- ProcessId pid() const; |
+ ProcessId Pid() const; |
// Returns true if this process is the current process. |
bool is_current() const; |