IAccessibilityDockingService::DockWindow method (shobjidl.h)
Docks the specified window handle to the specified monitor handle.
HRESULT DockWindow( [in] HWND hwnd, [in] HMONITOR hMonitor, UINT cyRequested, [in] IAccessibilityDockingServiceCallback *pCallback );
The accessibility application window that will be docked on the passed monitor handle.
The monitor on which the accessibility application window will be docked.
The callback pointer on which the accessibility application will receive the Undock notification.
This method can return one of these values.
||The window handle or monitor handle is not valid.|
||The calling process is not a UIAcess accessibility application or the calling process does not own the window.|
||There is already another window occupying the docking space. Only one window can be docked at a time.|
||The requested uHeight is larger than the maximum allowed docking height for the specified monitor. However, if this error code is being returned, it means that this monitor does support docking, though at a height indicated by a call to the GetAvailableSize method.|
||The monitor specified by the monitor handle does not support docking.|