Now I go through all the windows and use the IsWindowOnCurrentVirtualDesktop method of the IsWindowOnCurrentVirtualDesktop interface IVirtualDesktopManager determine that the window is on the current table.
In addition to windows from the taskbar, I get a lot of others. That, in general, is not critical. Although I would also like to fix it. The main problem in determining the sequence. As you know, the user can manually change the position of the button in the taskbar.
How to determine the sequence?