Microsoft DirectX 8.1 (C++)

IMediaSample2::SetProperties

The SetProperties method sets the properties of a media sample.

Syntax

HRESULT SetProperties(
  DWORD cbProperties,
  const BYTE *pbProperties
);

Parameters

cbProperties

[in] Length of property data to set, in bytes.

pbProperties

[in] Pointer to a buffer of size cbProperties.

Return Value

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_OUTOFMEMORY Insufficient memory.
E_POINTER NULL pointer argument.

Remarks

The data contained in pbProperties must conform to the format of the AM_SAMPLE2_PROPERTIES structure. You can specify a subset of the sample properties by setting cbProperties to a value less than the size of the AM_SAMPLE2_PROPERTIES structure.

See Also