IWMDMStorage2::GetAttributes2 method (mswmdm.h)

The GetAttributes2 method retrieves extended attributes of the storage.

Syntax

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

Parameters

[out] pdwAttributes

Pointer to a DWORD specifying one or more attributes defined in the IWMDMStorage::GetAttributes method, combined with a bitwise OR.

[out] pdwAttributesEx

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

[out] pAudioFormat

Optional pointer to a _ WAVEFORMATEX structure that specifies audio information about the object. This parameter is ignored if the file is not audio.

[out] pVideoFormat

Optional pointer to a _ VIDEOINFOHEADER structure that specifies video information about the object. This parameter 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

Evaluation of attributes is a crucial step when exposing the contents of the media device. Some devices do not support hierarchical storage of data on storage media. The GetAttributes2 method is used to infer the support and format of the file system by discovering its structure through object attributes.

Requirements

   
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IWMDMEnumStorage Interface

IWMDMStorage2 Interface

IWMDMStorage2::SetAttributes2

IWMDMStorage::EnumStorage