IWMSStreamHeaderList::SetStringAttribute

The SetStringAttribute method specifies the value of a string attribute.

HRESULT SetStringAttribute(
  DWORD  dwAttributeId,
  BSTR  szAttribute
);

Arguments

dwAttributeId

[in] DWORD containing the index of the attribute to retrieve.

pszAttribute

[in] BSTR containing the value of the attribute.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code

Number

Description

E_INVALIDARG

0x80070057

dwAttributeId is not a valid index location.

E_OUTOFMEMORY

0x8007000E

There is insufficient memory to complete the function.

Requirements

Header: streamdescription.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Concepts

IWMSStreamHeaderList Interface