public void GetIVirtualDesktopManager_ReturnsValidComObject()
        {
            var factory = new ComObjectFactory();
            var result  = factory.GetIVirtualDesktopManager();

            Assert.NotNull(result);
        }
 public static Guid GetVirtualDesktopGuid(this Process process)
 {
     ValidateProcessWindow(process);
     ComObjectFactory.GetIVirtualDesktopManager().GetWindowDesktopId(process.MainWindowHandle, out var guid);
     return(guid);
 }