IVirtualDesktopManager::MoveWindowToDesktop method

Moves a window to the specified virtual desktop.

Syntax


HRESULT MoveWindowToDesktop(
  [in] HWND    topLevelWindow,
  [in] REFGUID desktopId
);

Parameters

topLevelWindow [in]

The window to move.

desktopId [in]

The identifier of the virtual desktop to move the topLeveLWindow to. You can use GetWindowDesktopId to get a window's identifier.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

See also

IVirtualDesktopManager

 

 

Show: