共用方式為


IAMMediaTypeSample::SetPointer

 
Microsoft DirectShow 9.0

IAMMediaTypeSample::SetPointer

  • Note   This interface is deprecated. New applications should not use it.

The SetPointer method sets the pointer to the media sample's memory buffer.

Syntax

  HRESULT SetPointer(
  BYTE *pBuffer,
  long lSize
);

Parameters

pBuffer

[in] Pointer to a memory buffer allocated by the caller, or NULL.

lSize

[in] Size of the buffer, in bytes.

Return Values

Returns one of the following values.

Return code Description
E_OUTOFMEMORY Insufficient memory.
S_OK Success.

Remarks

If the value of the pBuffer parameter is NULL, the method allocates a memory block, with a size in bytes equal to the value of the lSize parameter. There is no guarantee that the memory has been initialized.

See Also