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;