Use a interface IVirtualDesktopManager
para construir um aplicativo (linha de comando) para monitorar o status atual das janelas da área de trabalho virtual.
Virtual Desktop Switching in Windows 10 (Windows SDK Support Team Blog)
IVirtualDesktopManager
To go along with the addition of virtual desktops in Windows 10, a new shell interface was introduced called IVirtualDesktopManager. It only has three functions, but those allow you to do many things with virtual desktops and your own application.
IsWindowOnCurrentVirtualDesktop will tell you if your window is on the current virtual desktop. GetWindowDesktopId will give you the ID of the desktop the specified window is on. MoveWindowToDesktop will allow you to move a specified window to a specified desktop.
Quantos desktops virtuais estão ativos:
Comments:
Chris Lewis [MSFT]: There unfortunately is not an API to enumerate virtual desktops at this time.
Em que uma janela é
GetWindowDesktopId will give you the ID of the desktop the specified window is on.
Qual deles o computador está usando atualmente
If you create a new window with no parent, it will be placed on the current virtual desktop. [Call GetWindowDesktopId to get the desktop ID for the new window.]