/// <summary> /// Updates the list of open windows /// </summary> public void UpdateOpenWindowsList() { windows.Clear(); new Task(() => { InteropAndHelpers.CallBackPtr callbackptr = new InteropAndHelpers.CallBackPtr(WindowEnumerationCallBack); InteropAndHelpers.EnumWindows(callbackptr, 0); }).Start(); }
/// <summary> /// Updates the list of open windows /// </summary> public void UpdateOpenWindowsList() { this.windows.Clear(); new Task(() => { InteropAndHelpers.CallBackPtr callbackptr = new InteropAndHelpers.CallBackPtr(WindowEnumerationCallBack); InteropAndHelpers.EnumWindows(callbackptr, 0); } ).Start(); }