IStreamBufferRecordingAttribute::SetAttribute
Microsoft DirectShow 9.0 |
IStreamBufferRecordingAttribute::SetAttribute
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( ULONG ulReserved, LPCWSTR pszAttributeName, STREAMBUFFER_ATTR_DATATYPE StreamBufferAttributeType, BYTE *pbAttribute, 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 Values
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: Include Sbe.h.
See Also