From a0c9a2962c7a17f9c5ea2be2b0df01efb406c259 Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Fri, 12 Apr 2019 06:19:51 -0700 Subject: [PATCH] remove copy of Interop.GetCurrentThreadId.cs (dotnet/corefx#36807) Commit migrated from https://github.com/dotnet/corefx/commit/46f57de34bc4df79e50911dce6ec9abb4f35b553 --- .../Windows/Kernel32/Interop.GetCurrentThreadId.cs | 15 --------------- .../src/Microsoft.Win32.SystemEvents.csproj | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCurrentThreadId.cs diff --git a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCurrentThreadId.cs b/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCurrentThreadId.cs deleted file mode 100644 index a92936e..0000000 --- a/src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCurrentThreadId.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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. - -using System; -using System.Runtime.InteropServices; - -internal static partial class Interop -{ - internal static partial class Kernel32 - { - [DllImport(Interop.Libraries.Kernel32, ExactSpelling = true)] - public static extern int GetCurrentThreadId(); - } -} diff --git a/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj b/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj index eaa9500..94336af 100644 --- a/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj +++ b/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj @@ -97,8 +97,8 @@ Common\Interop\Windows\User32\Interop.WndProc.cs - - Common\Interop\Windows\Kernel32\Interop.GetCurrentThreadId.cs + + Common\CoreLib\Interop\Windows\Kernel32\Interop.GetCurrentThreadId.cs Common\Interop\Windows\Kernel32\Interop.GetModuleHandle.cs -- 2.7.4