Appropriate Method name GetWindowInfo

This commit is contained in:
glax 2024-04-15 21:49:05 +02:00
parent 2461232b5b
commit 99350636f0

View File

@ -16,14 +16,14 @@ public class WindowManager : IDisposable
while (_keepUpdating)
{
Windows.Clear();
EnumWindows(WindowPlacement, 0);
EnumWindows(GetWindowInfo, 0);
}
Thread.Sleep(UpdateInterval);
});
t.Start();
}
private bool WindowPlacement(IntPtr windowHandle, IntPtr lParam)
private bool GetWindowInfo(IntPtr windowHandle, IntPtr lParam)
{
WINDOWPLACEMENT windowPlacement = new ();
GetWindowPlacement(windowHandle, ref windowPlacement);