Compartilhar via


IMediaBuffer::SetLength (Windows CE 5.0)

Send Feedback

This method specifies the length of the data currently in the buffer.

HRESULT SetLength(DWORDcbLength);

Parameters

  • cbLength
    Size of the data, in bytes. The value must not exceed the buffer's maximum size. Call the IMediaBuffer::GetMaxLength method to obtain the maximum size.

Return Values

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

Remarks

This method sets the size of the valid data currently in the buffer, not the buffer's allocated size.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Dmo.h.
Link Library: Dmoguid.lib.

See Also

IMediaBuffer

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.