Get the output (the display monitor) that contains the majority of the client area of the target window.
HRESULT GetContainingOutput( IDXGIOutput **ppOutput );
A pointer to the output interface (see IDXGIOutput).
Returns one of the following DXGI_ERROR.
If the method succeeds, the output interface will be filled and its reference count incremented. When you are finished with it, be sure to release the interface to avoid a memory leak.
The output is also owned by the adapter on which the swap chain's device was created.
You cannot call GetContainingOutput on a swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.
To determine the output corresponding to such a swap chain, you should call IDXGIFactory::EnumAdapters and then IDXGIAdapter::EnumOutputs to enumerate over all of the available outputs. You should then intersect the bounds of your CoreWindow::Bounds with the desktop coordinates of each output, as reported by DXGI_OUTPUT_DESC1::DesktopCoordinates or DXGI_OUTPUT_DESC::DesktopCoordinates.