IWMDMStorage2::SetAttributes2 (deprecated)
![]() |
This is preliminary documentation and subject to change.
This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.
The SetAttributes2 method sets extended attributes of the storage.
Syntax
HRESULT SetAttributes2(
DWORD dwAttributes,
DWORD dwAttributesEx,
_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