IMFMediaBuffer::GetMaxLength Method

Retrieves the allocated size of the buffer.

Syntax

public:
HRESULT GetMaxLength(
         DWORD *pcbMaxLength
)  

Parameters

pcbMaxLength
Type: DWORD *

[out]

Receives the allocated size of the buffer, in bytes.

Return value

Type: HRESULT 

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

The buffer might or might not contain any valid data, and if there is valid data in the buffer, it might be smaller than the buffer’s allocated size. To get the length of the valid data, call IMFMediaBuffer::GetCurrentLength.

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use mfuuid.lib.