There is a new shell interface in Windows 10 called IVirtualDesktopManager. It provides helpful methods like "GetWindowDesktopId" and "IsWindowOnCurrentVirtualDesktop".

I first read about it...