GetContainingOutput
Collapse the table of content
Expand the table of content

IDXGISwapChain::GetContainingOutput method

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

Syntax


HRESULT GetContainingOutput(
  [out] IDXGIOutput **ppOutput
);

Parameters

ppOutput [out]

Type: IDXGIOutput**

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 swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

IDXGISwapChain
DXGI Interfaces

 

 

Show:
© 2016 Microsoft