IVMRSurfaceAllocator9::GetSurface

 
Microsoft DirectShow 9.0

IVMRSurfaceAllocator9::GetSurface

The GetSurface method retrieves a Direct3D surface.

Syntax

  HRESULT GetSurface(
  DWORD_PTR  dwUserID,
  DWORD  SurfaceIndex,
  DWORD  SurfaceFlags,
  IDirect3DSurface9**  lplpSurface
);

Parameters

dwUserID

[in]  Application-defined identifier. This value is the same value that the application passed to the IVMRSurfaceAllocatorNotify9::AdviseSurfaceAllocator method in the dwUserID parameter.

SurfaceIndex

[in]  Specifies the index of the surface to retrieve.

SurfaceFlags

[in]  Reserved.

lplpSurface

[out]  Address of a variable that receives an IDirect3DSurface9 interface pointer. The caller must release the interface.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also