summaryrefslogtreecommitdiffstats
path: root/base/process_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r--base/process_util_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index aad336cf..24689a1 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -28,6 +28,10 @@ int GetCurrentProcId() {
return ::GetCurrentProcessId();
}
+ProcessHandle GetCurrentProcessHandle() {
+ return ::GetCurrentProcess();
+}
+
// Helper for GetProcId()
bool GetProcIdViaGetProcessId(ProcessHandle process, DWORD* id) {
// Dynamically get a pointer to GetProcessId().