IWMDMOperation2::SetObjectAttributes2
The SetObjectAttributes2 method sets attributes of files or storages.
Syntax
HRESULT SetObjectAttributes2(
DWORD dwAttributes,
DWORD dwAttributesEx,
_WAVEFORMATEX* pFormat,
_VIDEOINFOHEADER* pVideoFormat
);
Parameters
dwAttributes
[in] Pointer to a DWORD containing the attributes as defined by the IWMDMStorage::SetAttributes method.
dwAttributesEx
[in] DWORD containing the extended attributes. No extended attributes are currently defined.
pFormat
[in] 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.
Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
E_FAIL | An unspecified error occurred. |
Requirements
Header: Defined in wmdm.idl.
Library: mssachlp.lib
See Also