Retrieves the allocated size of the buffer.
public:
HRESULT GetMaxLength(
DWORD *pcbMaxLength
)
pcbMaxLength
Type: DWORD *
[out]
Receives the allocated size of the buffer, in bytes.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The method succeeded. |
Refer to Media Foundation return codes.
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.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use mfuuid.lib.