IWMDMOperation2::GetObjectAttributes2 method (mswmdm.h)

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(
  [out] DWORD            *pdwAttributes,
  [out] DWORD            *pdwAttributesEx,
  [out] _WAVEFORMATEX    *pAudioFormat,
  [out] _VIDEOINFOHEADER *pVideoFormat
);

Parameters

[out] pdwAttributes

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

[out] pdwAttributesEx

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

[out] pAudioFormat

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

[out] pVideoFormat

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

Return value

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

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

IWMDMOperation2 Interface

SetObjectAttributes2