Share via


IVMRSurface::LockSurface

 
Microsoft DirectShow 9.0

IVMRSurface::LockSurface

The LockSurface method locks the attached DirectDraw surface.

Syntax

  HRESULT LockSurface(

  
  BYTE**
  
  lpSurface

  );

Parameters

lpSurface

[out]  Address of a variable that receives a pointer to the locked bits.

Return Values

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

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

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also