次の方法で共有


CMediaSample::GetPointer (Compact 2013)

3/26/2014

Retrieves a read/write pointer to the buffer's memory.

Syntax

HRESULT GetPointer(
  BYTE** ppBuffer 
);

Parameters

  • ppBuffer
    Retrieved pointer to the buffer.

Return Value

Returns VFW_E_BUFFER_NOTSET if CMediaSample::SetPointer was not called before calling this function, or NOERROR otherwise.

Remarks

This member function implements the IMediaSample::GetPointer method.

GetPointer returns the value of m_pBuffer, set using CMediaSample::SetPointer.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaSample Class