IDXGISwapChain::GetContainingOutput Method

Get the output (the display monitor) that contains the majority of the client area of the target window.

Syntax

public:
HRESULT GetContainingOutput(
         IDXGIOutput **ppOutput
)  

Parameters

ppOutput
Type: IDXGIOutput **

[out] A pointer to the output interface (see IDXGIOutput).

Return value

Type: HRESULT 

Returns one of the following DXGI_ERROR.

Remarks

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.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGISwapChain

IDXGISwapChain Members