IWMDMStorage2::SetAttributes2
The SetAttributes2 method sets extended attributes of the storage.
Syntax
HRESULT SetAttributes2(DWORDdwAttributes,DWORDdwAttributesEx,_WAVEFORMATEX*pFormat,_VIDEOINFOHEADER*pVideoFormat);
Parameters
dwAttributes
[in] DWORD specifying the base attributes defined in the IWMDMStorage::SetAttributes method.
dwAttributesEx
[in] DWORD specifying extended attributes. Currently, no extended attributes are defined.
pFormat
[out] Optional pointer to a _WAVEFORMATEX structure that specifies audio information about the object. This parameter is ignored if the file is not audio.
pVideoFormat
[in] Optional pointer to a _VIDEOINFOHEADER structure that specifies video information about the object. This parameter is ignored if the file is not video.
Return Values
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 extenstive list of possible error codes, see Error Codes.
Requirements
Header: Defined in mswmdm.h.
Library: mssachlp.lib
See Also