Share via


IWMDMOperation2::SetObjectAttributes2

banner art

The SetObjectAttributes2 method sets attributes of files or storages. This method is currently not called by Windows Media Device Manager.

Syntax

HRESULT SetObjectAttributes2(DWORDdwAttributes,DWORDdwAttributesEx,_WAVEFORMATEX*pFormat,_VIDEOINFOHEADER*pVideoFormat);

Parameters

dwAttributes

[in]  Pointer to a DWORD specifying the attributes as defined by the IWMDMStorage::SetAttributes method.

dwAttributesEx

[in]  DWORD specifying the extended attributes. No extended attributes are currently defined.

pFormat

[in]  Optional pointer to a _WAVEFORMATEX structure that specifies audio information about the object.

pVideoFormat

[in]  Optional pointer to a _VIDEOINFOHEADER structure that specifies video information about the object.

Return Values

The application should return one of the following HRESULT values.

Return code Description
S_OK The read operation should continue.
WMDM_E_USER_CANCELLED The read operation should be cancelled without finishing.
E_FAIL An unspecified error occurred, and the read operation should be cancelled without finishing.

Requirements

Header: Defined in mswmdm.h.

Library: mssachlp.lib

See Also