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
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 |