Share via


IWMDMOperation2::GetObjectAttributes2

banner art

Windows Media Device Manager calls GetObjectAttributes when a file is written to the device in order to learn the attributes of the file.

Syntax

HRESULT GetObjectAttributes2(DWORD*pdwAttributes,DWORD*pdwAttributesEx,_WAVEFORMATEX*pAudioFormat,_VIDEOINFOHEADER*pVideoFormat);

Parameters

pdwAttributes

[out]  Pointer to a DWORD specifying the storage attributes defined in the IWMDMStorage::GetAttributes method.

pdwAttributesEx

[out]  Pointer to a DWORD specifying extended attributes. There are currently no extended attributes defined.

pAudioFormat

[out]  Optional pointer to a _WAVEFORMATEX structure that specifies audio file attributes.

pVideoFormat

[out]  Optional pointer to a _VIDEOINFOHEADER structure that specifies video object attributes.

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