Share via


IAttributeGet::GetAttribIndexed method (dsattrib.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.]

This topic applies to Update Rollup 2 for Microsoft Windows XP Media Center Edition 2005 and later.

The GetAttribIndexed method returns an attribute value, specified by index.

Syntax

HRESULT GetAttribIndexed(
  [in]      LONG  lIndex,
  [out]     GUID  *pguidAttribute,
  [in, out] BYTE  *pbAttribute,
  [in, out] DWORD *pdwAttributeLength
);

Parameters

[in] lIndex

Zero-based index of the attribute. To get the number of attributes, call IAttributeGet::GetCount.

[out] pguidAttribute

Receives the GUID for this attribute.

[in, out] pbAttribute

Pointer to a buffer that receives the attribute value. This parameter can be NULL.

[in, out] pdwAttributeLength

If pbAttribute is NULL, this parameter receives the size of the attribute data, in bytes. If pbAttribute is non-NULL, this parameter specifies the size of the pbAttribute buffer, in bytes.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
E_INVALIDARG
The lIndex parameter is out of range.
S_OK
The method succeeded.

Requirements

   
Target Platform Windows
Header dsattrib.h

See also

IAttributeGet Interface