Compartir a través de


IVMRSurface9::LockSurface

 
Microsoft DirectShow 9.0

IVMRSurface9::LockSurface

The LockSurface method locks the attached Direct3D surface.

Syntax

  HRESULT LockSurface(
  BYTE**  lpSurface
);

Parameters

lpSurface

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

Return Values

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

Value Description
S_OK The method succeeded.
E_POINTER NULL pointer.
E_FAIL No Direct3D surface is attached to this sample.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also