Export (0) Print
Expand All

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

Windows Phone 8: This API is supported.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

IDXGISwapChain
DXGI Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft