IMDSPStorage::SetAttributes 方法 (mswmdm.h)
SetAttributes 方法设置存储对象的属性。
语法
HRESULT SetAttributes(
[in] DWORD dwAttributes,
[in] _WAVEFORMATEX *pFormat
);
参数
[in] dwAttributes
包含 IWMDMStorage::SetAttributes 方法中定义的要设置的属性的 DWORD。
[in] pFormat
指向包含有关对象的属性信息的 _WAVEFORMATEX 结构的指针。 此参数是可选的,如果文件不是音频,则忽略此参数。
返回值
该方法返回 HRESULT。 Windows Media 设备管理器 中的所有接口方法都可以返回以下任一类错误代码:
- 标准 COM 错误代码
- 转换为 HRESULT 值的 Windows 错误代码
- Windows Media 设备管理器错误代码
注解
无法设置由 GetAttributes 返回的许多属性 (IWMDMStorage::GetAttributes 的属性表中列出的) ,因此它们不会在 IWMDMStorage::SetAttributes 的属性表中列出。
此方法是可选的。 有关详细信息,请参阅 必需接口和可选接口。
要求
要求 | 值 |
---|---|
目标平台 | Windows |
标头 | mswmdm.h |
Library | Mssachlp.lib |