次の方法で共有


IWMDMOperation::SetObjectAttributes

banner art

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

Syntax

HRESULT SetObjectAttributes(DWORDdwAttributes,_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