Share via


IMediaBuffer::GetMaxLength

 
Microsoft DirectShow 9.0

IMediaBuffer::GetMaxLength

The GetMaxLength method retrieves the maximum number of bytes this buffer can hold.

Syntax

  HRESULT GetMaxLength(
    DWORD* pcbMaxLength
);

Parameters

pcbMaxLength

[out] Pointer to a variable that receives the buffer's maximum size, in bytes.

Return Value

Returns S_OK if successful. Otherwise, returns an HRESULT value indicating the cause of the error.

Requirements

  Header: Declared in Mediaobj.h; include Dmo.h
  Library: Dmoguids.lib.

See Also