From 78c2d160b8bb4691c5e040bb724dcf0d57010dae Mon Sep 17 00:00:00 2001 From: retr0volkov Date: Thu, 24 Sep 2026 21:12:12 +0300 Subject: [PATCH] Fixed a library import --- Services/WindowInteractionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/WindowInteractionService.cs b/Services/WindowInteractionService.cs index 7184264..df47604 100644 --- a/Services/WindowInteractionService.cs +++ b/Services/WindowInteractionService.cs @@ -21,7 +21,7 @@ public partial class WindowInteractionService private const int SC_MAXIMIZE = 0xF030; private const int SC_RESTORE = 0xF120; - [LibraryImport("user32.dll", StringMarshalling = StringMarshalling.Utf16)] + [LibraryImport("user32.dll", EntryPoint = "SendMessageW", StringMarshalling = StringMarshalling.Utf16)] private static partial IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, string lParam); [LibraryImport("user32.dll", EntryPoint = "PostMessageW")]