Microsoft DirectX 9.0

IVMRSurface::GetSurface

The GetSurface method retrieves the attached DirectDraw surface interface.

Syntax

HRESULT GetSurface(
  LPDIRECTDRAWSURFACE7*  lplpSurface
);

Parameters

lplpSurface

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

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Error Code Description
E_POINTER NULL pointer argument.
E_FAIL No DirectDraw surface is attached to this sample.

See Also