Appropriate Method name GetWindowInfo
This commit is contained in:
parent
2461232b5b
commit
99350636f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user