Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This interface provides methods for manipulating a data buffer. Any buffer passed to a Microsoft DirectX Media Object (DMO) must implement this interface.

The following table shows the methods for IMediaBufferin the order the compiler calls them.

Method Description

SetLength

Specifies the length of the data currently in the buffer.

GetMaxLength

Retrieves the maximum number of bytes this buffer can hold.

GetBufferAndLength

Retrieves the buffer and the size of the valid data in the buffer.

The IMediaBufferinterface, like all COM interfaces, inherits the IUnknowninterface methods. The IUnknowninterface supports the following three methods:

Requirements

Header dmo.h
Library Dmoguid.lib
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Concepts

DMO Interfaces