From f71612fd059b7cbd7d99f3aa4a20bfb5102e9de4 Mon Sep 17 00:00:00 2001 From: David Hall Date: Thu, 7 Mar 2019 11:43:18 -0700 Subject: [PATCH] Cleaned up using statements --- Windows.Shell/ShellExtensions/MessageLoop.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Windows.Shell/ShellExtensions/MessageLoop.cs b/Windows.Shell/ShellExtensions/MessageLoop.cs index 4f43448d..303861ff 100644 --- a/Windows.Shell/ShellExtensions/MessageLoop.cs +++ b/Windows.Shell/ShellExtensions/MessageLoop.cs @@ -1,4 +1,5 @@ using System; +using static Vanara.PInvoke.Kernel32; using static Vanara.PInvoke.User32; using static Vanara.PInvoke.User32_Gdi; @@ -22,7 +23,7 @@ namespace Vanara.PInvoke private IntPtr timeoutTimerId; // timer id used to exit the app if the app is not called back within a certain time /// Initializes a new instance of the class. - public MessageLoop() => curThreadId = Vanara.PInvoke.Kernel32.GetCurrentThreadId(); + public MessageLoop() => curThreadId = GetCurrentThreadId(); /// Occurs when a new message is available. public event EventHandlerEx ProcessMessage;