Share via


IStreamBufferRecordingAttribute::SetAttribute Method

This topic applies only to Windows XP Service Pack 1 or later.
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

  • ulReserved [in]
    Reserved. Set this parameter to zero.

  • pszAttributeName [in]
    Wide-character string that contains the name of the attribute.

  • StreamBufferAttributeType [in]
    Member of the STREAMBUFFER_ATTR_DATATYPE enumeration that defines the data type of the attribute data.

  • pbAttribute [in]
    Pointer to a buffer that contains the attribute data.

  • cbAttributeLength [in]
    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

Header Declared in Sbe.h.

See Also

IStreamBufferRecordingAttribute Interface
IStreamBufferRecordControl::Start

Send comments about this topic to Microsoft

Build date: 12/4/2008