Microsoft DirectX 8.1 (C++)

IVMRSurface::GetSurface

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The GetSurface method retrieves the attached DirectDraw surface interface.

Syntax

HRESULT GetSurface(
  LPDIRECTDRAWSURFACE7*  lplpSurface
);

Parameters

lplpSurface

[out]  Pointer that will receive the DirectDraw surface.

Return Values

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

Error Code Description
E_POINTER lplpSurface is invalid.
E_FAIL No DirectDraw surface is attached to this sample.

Remarks

The media sample object increments the reference count on the returned interface. The caller must call Release on the interface.

See Also