Share via


IWMDMStorage2::SetAttributes2

banner art

The SetAttributes2 method sets storage attributes.

Syntax

HRESULT SetAttributes2(
  DWORD  dwAttributes,
  DWORD  dwAttributesEx,
  _WAVEFORMATEX*  pFormat,
  _VIDEOINFOHEADER*  pVideoFormat
);

Parameters

dwAttributes

[in]  DWORD containing the base attributes as defined in the IWMDMStorage::SetAttributes method.

dwAttributesEx

[in]  DWORD containing the extended attributes. Currently, no extended attributes are defined.

pFormat

[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

[in]  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.

Requirements

Header: Defined in wmdm.idl.

Library: mssachlp.lib

See Also