IWMDMOperation::SetObjectAttributes method (mswmdm.h)

The SetObjectAttributes method specifies the file attributes. This method is currently not called by Windows Media Device Manager.

Syntax

HRESULT SetObjectAttributes(
  [in] DWORD         dwAttributes,
  [in] _WAVEFORMATEX *pFormat
);

Parameters

[in] dwAttributes

DWORD specifying the object attributes as defined in the IWMDMStorage::SetAttributes method.

[in] pFormat

Pointer to a _WAVEFORMATEX structure specifying the format for files with audio data attributes. If the file contains audio data, this parameter should be filled.

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.

Remarks

Audio attributes include the number of samples per second, the number of bytes per sample, and so on.

Requirements

   
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

Handling File Transfers Manually

IWMDMOperation Interface

IWMDMOperation::GetObjectAttributes