IMDSPStorage::SetAttributes method (mswmdm.h)

The SetAttributes method sets the attributes of a storage object.

Syntax

HRESULT SetAttributes(
  [in] DWORD         dwAttributes,
  [in] _WAVEFORMATEX *pFormat
);

Parameters

[in] dwAttributes

DWORD containing the attributes to be set as defined in the IWMDMStorage::SetAttributes method.

[in] pFormat

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.

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

Many of the attributes returned by GetAttributes (as listed in attribute table for IWMDMStorage::GetAttributes) cannot be set, so they are not listed in the attribute table for IWMDMStorage::SetAttributes.

This method is optional. For more information, see Mandatory and Optional Interfaces.

Requirements

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

See also

IMDSPEnumStorage Interface

IMDSPStorage Interface

IMDSPStorage2::SetAttributes2

IMDSPStorage::GetAttributes

_WAVEFORMATEX