IMediaSample::GetSize method (strmif.h)

The GetSize method retrieves the size of the buffer.


long GetSize();

Return value

Returns the size of the buffer, in bytes. The size does not include the prefix bytes, if any.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also


Error and Success Codes

IMediaSample Interface