IMDSPStorage2::GetAttributes2 method (mswmdm.h)

The GetAttributes2 method gets attributes of files or storages.

Syntax

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

Parameters

[out] pdwAttributes

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

[out] pdwAttributesEx

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

[out] pAudioFormat

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.

[out] pVideoFormat

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 value

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 extensive list of possible error codes, see Error Codes.

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

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IMDSPStorage2 Interface

IMDSPStorage2::SetAttributes2