Microsoft DirectX 9.0

IVMRSurfaceAllocatorNotify9::AllocateSurfaceHelper

The AllocateSurfaceHelper method allocates a Direct3D surface based on application-specified parameters.

Syntax

HRESULT AllocateSurfaceHelper(
  VMR9AllocationInfo*  lpAllocInfo,
  DWORD*  lpNumBuffers,
  IDirect3DSurface9**  lplpSurface
);

Parameters

lpAllocInfo

[in]  Pointer to a VMR9AllocationInfo structure that contains initialization information for the new surface.

lpNumBuffers

[in, out]  Specifies the number of buffers to use.

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

Include D3d9.h, Vmr9.h.

See Also