This topic has not yet been rated - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/22/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.