Skip to content

Latest commit

 

History

History
101 lines (81 loc) · 3.09 KB

nf-mfobjects-imfmediabuffer-getmaxlength.md

File metadata and controls

101 lines (81 loc) · 3.09 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfobjects.IMFMediaBuffer.GetMaxLength
IMFMediaBuffer::GetMaxLength (mfobjects.h)
Retrieves the allocated size of the buffer.
GetMaxLength
GetMaxLength method [Media Foundation]
GetMaxLength method [Media Foundation]
IMFMediaBuffer interface
IMFMediaBuffer interface [Media Foundation]
GetMaxLength method
IMFMediaBuffer.GetMaxLength
IMFMediaBuffer::GetMaxLength
f0697f1d-18d6-4406-9f19-8cbaac08ad47
mf.imfmediabuffer_getmaxlength
mfobjects/IMFMediaBuffer::GetMaxLength
mf\imfmediabuffer_getmaxlength.htm
mf
f0697f1d-18d6-4406-9f19-8cbaac08ad47
12/05/2018
GetMaxLength, GetMaxLength method [Media Foundation], GetMaxLength method [Media Foundation],IMFMediaBuffer interface, IMFMediaBuffer interface [Media Foundation],GetMaxLength method, IMFMediaBuffer.GetMaxLength, IMFMediaBuffer::GetMaxLength, f0697f1d-18d6-4406-9f19-8cbaac08ad47, mf.imfmediabuffer_getmaxlength, mfobjects/IMFMediaBuffer::GetMaxLength
mfobjects.h
Mfidl.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfuuid.lib
Windows
19H1
IMFMediaBuffer::GetMaxLength
mfobjects/IMFMediaBuffer::GetMaxLength
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFMediaBuffer.GetMaxLength

IMFMediaBuffer::GetMaxLength

-description

Retrieves the allocated size of the buffer.

-parameters

-param pcbMaxLength [out]

Receives the allocated size of the buffer, in bytes.

-returns

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.

-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.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.

-see-also

IMFMediaBuffer

Media Buffers