Share via


IWMDMOperation::SetObjectAttributes (deprecated)

banner art

This is preliminary documentation and subject to change.

This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.

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

Syntax

HRESULT SetObjectAttributes(
  DWORD  dwAttributes,
  _WAVEFORMATEX*  pFormat
);

Parameters

dwAttributes

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

pFormat

[in]  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 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.

If the application returns either E_FAIL or WMDM_E_USER_CANCELLED, the operation is terminated and the End method is called. If the application is using block mode and returns WMDM_E_USER_CANCELLED, then Windows Media Device Manager will return that error to the application.

Remarks

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

Requirements

Header: Defined in mswmdm.h.

Library: mssachlp.lib

See Also