IMDSPStorage2::GetAttributes2

banner art

The GetAttributes2 method gets attributes of files or storages.

Syntax

HRESULT GetAttributes2(DWORD*pdwAttributes,DWORD*pdwAttributesEx,_WAVEFORMATEX*pAudioFormat,_VIDEOINFOHEADER*pVideoFormat);

Parameters

pdwAttributes

[out]  Pointer to a DWORD containing the base attributes as defined in the IWMDMStorage::GetAttributes method.

pdwAttributesEx

[out]  Pointer to a DWORD containing the extended attributes. Currently no extended attributes are defined.

pAudioFormat

[out]  Pointer to a _WAVEFORMATEX structure that contains audio format information about the object. This parameter is optional and is ignored if the file is not audio.

pVideoFormat

[out]  Pointer to a _VIDEOINFOHEADER structure that contains video format information about the object. This parameter is optional and is ignored if the file is not video.

Return Values

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes

For an extenstive list of possible error codes, see Error Codes.

Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
E_FAIL An unspecified error occurred.

Remarks

See remarks for IWMDMStorage::GetAttributes.

This method must be implemented. It must not return WMDM_E_NOTSUPPORTED or E_NOTIMPL. For more information, see Mandatory and Optional Interfaces.

Requirements

Header: Defined in mswmdm.h.

Library: mssachlp.lib

See Also