CMediaSample::SetProperties
Microsoft DirectShow 9.0 |
CMediaSample::SetProperties
The SetProperties method sets the properties of the sample. This method implements the IMediaSample2::SetProperties method.
Syntax
HRESULT SetProperties( DWORD cbProperties, const BYTE *pbProperties );
Parameters
cbProperties
Length of property data to set, in bytes.
pbProperties
Pointer to a buffer of size cbProperties.
Return Value
Returns one of the HRESULT values shown in the following table.
Value | Description |
S_OK | Success |
E_INVALIDARG | Invalid argument |
E_OUTOFMEMORY | Insufficient memory |
E_POINTER | NULL pointer argument |
Requirements
** Header:** Declared in Amfilter.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
See Also