IMFMediaBuffer::GetCurrentLength Method

Retrieves the length of the valid data in the buffer.

Syntax

public:
HRESULT GetCurrentLength(
         DWORD *pcbCurrentLength
)  

Parameters

pcbCurrentLength
Type: DWORD *

[out]

Receives the length of the valid data, in bytes. If the buffer does not contain any valid data, the value is zero.

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

Requirements

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

Library: Use mfuuid.lib.