Appropriate Method name GetWindowInfo
This commit is contained in:
parent
2461232b5b
commit
99350636f0
@ -16,14 +16,14 @@ public class WindowManager : IDisposable
|
|||||||
while (_keepUpdating)
|
while (_keepUpdating)
|
||||||
{
|
{
|
||||||
Windows.Clear();
|
Windows.Clear();
|
||||||
EnumWindows(WindowPlacement, 0);
|
EnumWindows(GetWindowInfo, 0);
|
||||||
}
|
}
|
||||||
Thread.Sleep(UpdateInterval);
|
Thread.Sleep(UpdateInterval);
|
||||||
});
|
});
|
||||||
t.Start();
|
t.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool WindowPlacement(IntPtr windowHandle, IntPtr lParam)
|
private bool GetWindowInfo(IntPtr windowHandle, IntPtr lParam)
|
||||||
{
|
{
|
||||||
WINDOWPLACEMENT windowPlacement = new ();
|
WINDOWPLACEMENT windowPlacement = new ();
|
||||||
GetWindowPlacement(windowHandle, ref windowPlacement);
|
GetWindowPlacement(windowHandle, ref windowPlacement);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user