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")]