diff --git a/Plugins/x86/uWindowCapture.dll b/Plugins/x86/uWindowCapture.dll index 0c79ae5..ea6d676 100644 Binary files a/Plugins/x86/uWindowCapture.dll and b/Plugins/x86/uWindowCapture.dll differ diff --git a/Plugins/x86_64/uWindowCapture.dll b/Plugins/x86_64/uWindowCapture.dll index 9fe6777..03b0e46 100644 Binary files a/Plugins/x86_64/uWindowCapture.dll and b/Plugins/x86_64/uWindowCapture.dll differ diff --git a/Scripts/UwcLib.cs b/Scripts/UwcLib.cs index aab8071..e0c9a55 100644 --- a/Scripts/UwcLib.cs +++ b/Scripts/UwcLib.cs @@ -92,6 +92,8 @@ public static class Lib private static extern IntPtr GetMessages_Internal(); [DllImport(name, EntryPoint = "UwcClearMessages")] private static extern void ClearMessages(); + [DllImport(name, EntryPoint = "UwcExcludeRemovedWindowEvents")] + private static extern void ExcludeRemovedWindowEvents(); [DllImport(name, EntryPoint = "UwcCheckWindowExistence")] public static extern bool CheckWindowExistence(int id); [DllImport(name, EntryPoint = "UwcGetWindowHandle")] @@ -229,6 +231,8 @@ public static class Lib public static Message[] GetMessages() { + ExcludeRemovedWindowEvents(); + var count = GetMessageCount(); var messages = new Message[count];