Share via


IStreamBufferRecordingAttribute::SetAttribute method (sbe.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

The SetAttribute method sets an attribute on the stream buffer file.

Syntax

HRESULT SetAttribute(
  [in] ULONG                      ulReserved,
  [in] LPCWSTR                    pszAttributeName,
  [in] STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType,
  [in] BYTE                       *pbAttribute,
  [in] WORD                       cbAttributeLength
);

Parameters

[in] ulReserved

Reserved. Set this parameter to zero.

[in] pszAttributeName

Wide-character string that contains the name of the attribute.

[in] StreamBufferAttributeType

Member of the STREAMBUFFER_ATTR_DATATYPE enumeration that defines the data type of the attribute data.

[in] pbAttribute

Pointer to a buffer that contains the attribute data.

[in] cbAttributeLength

The size of the buffer specified in pbAttribute.

Return value

Returns an HRESULT value.

Remarks

If an attribute with that name already exists, the method overwrites it with the new value.

The method fails if the recorder object is already recording.

Requirements

Requirement Value
Minimum supported client Windows�XP with SP1 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header sbe.h

See also

IStreamBufferRecordControl::Start

IStreamBufferRecordingAttribute Interface