Partager via


IWMDMOperation2::GetObjectAttributes2

banner art

The GetObjectAttributes2 method retrieves the attributes of files or storages.

Syntax

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

Parameters

pdwAttributes

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

pdwAttributesEx

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

pAudioFormat

[out]  Pointer to a _WAVEFORMATEX structure that contains attribute 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 attribute 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 and service provider 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 a complete 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.

Requirements

Header: Defined in wmdm.idl.

Library: mssachlp.lib

See Also