Get the output (the display monitor) that contains the majority of the client area of the target window.
public:
HRESULT GetContainingOutput(
IDXGIOutput **ppOutput
)
ppOutput
Type: IDXGIOutput **
[out] A pointer to the output interface (see IDXGIOutput).
Type: HRESULT
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 windowless swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).