Windows Media Format SDK banner art
PreviousNext

IWMHeaderInfo::GetAttributeCount

The GetAttributeCount method returns the number of attributes defined in the header section of the Windows Media file.

Syntax

HRESULT GetAttributeCount(
  WORD  wStreamNum,
  WORD*  pcAttributes
);

Parameters

  wStreamNum

[in]  Word containing the stream number.

  pcAttributes

[out]  Pointer to a count of the attributes.

Return Values

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

Return code Meaning
NS_E_INVALID_STATE The writer is not in a configurable state, or no profile has been set.
E_UNEXPECTED The method failed for an unspecified reason.

Remarks

This SDK does not support attributes with stream numbers.  So the stream number should always be set to zero, indicating that the attribute applies to the entire current file.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.