IDirect3DSurface9::GetContainer

This is a method of IDirect3DSurface9 that allows access to the parent level texture, if there is one. Or it will allow access to the parent swap chain.

Syntax
HRESULT GetContainer( REFIID riid,  void ** ppContainer );

Parameters
 riid -  Reference identifier of the requested container.

 ppContainer -  The address of the pointer to place the container if it succeeds.

Return Values
If it succeeds, it will return D3D_OK, otherwise it will return D3DERR_INVALIDCALL.

Requirements
 Header -  d3d9.h

 Library -  d3d9.lib