summaryrefslogtreecommitdiff
path: root/src/debug/debug-pal/win/processdescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/debug-pal/win/processdescriptor.cpp')
-rw-r--r--src/debug/debug-pal/win/processdescriptor.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/debug/debug-pal/win/processdescriptor.cpp b/src/debug/debug-pal/win/processdescriptor.cpp
new file mode 100644
index 0000000000..fbc0bf0486
--- /dev/null
+++ b/src/debug/debug-pal/win/processdescriptor.cpp
@@ -0,0 +1,14 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+#include <windows.h>
+#include <stdio.h>
+#include <wchar.h>
+#include <assert.h>
+#include "processdescriptor.h"
+
+ProcessDescriptor ProcessDescriptor::FromCurrentProcess()
+{
+ return FromPid(GetCurrentProcessId());
+}