IDirect3DSwapChain9::GetPresentParameters

Retrieves the presentation parameters associated with a swap chain.

HRESULT GetPresentParameters(
  D3DPRESENT_PARAMETERS* pPresentationParameters
);

Parameters

pPresentationParameters
[out, retval] Pointer to the presentation parameters. See D3DPRESENT_PARAMETERS.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

This method can be used to see the presentation parameters of the parent swap chain of a surface (a back buffer, for instance). The parent swap chain can be retrieved with IDirect3DSurface9::GetContainer.

Requirements

Header: Declared in D3d9.h.