示例#1
0
        /// <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();
        }
示例#2
0
        /// <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();
        }