IKsPropertySet::Set 方法 (dsound.h)

Set 方法设置由属性集 GUID 和属性标识符标识的属性。

语法

HRESULT Set(
  [in] REFGUID rguidPropSet,
  [in] ULONG   ulId,
  [in] LPVOID  pInstanceData,
  [in] ULONG   ulInstanceLength,
  [in] LPVOID  pPropertyData,
  [in] ULONG   ulDataLength
);

参数

[in] rguidPropSet

标识属性集的 GUID。

[in] ulId

属性集中属性的标识符。

[in] pInstanceData

指向 属性的实例数据的指针。

[in] ulInstanceLength

InstanceData 处缓冲区的大小(以字节为单位)。

[in] pPropertyData

指向缓冲区的指针,该缓冲区包含要设置的属性的值。

[in] ulDataLength

PropertyData 处缓冲区的大小(以字节为单位)。

返回值

如果成功,则返回 NOERROR;否则,将返回错误代码。

注解

警告

头文件 ksproxy.hdsound.h 定义 IKsPropertySet 接口的类似但不兼容的版本。 需要 KS 代理模块的应用程序应使用 ksproxy.h 中定义的版本。 Microsoft Windows SDK文档中的 DirectSound 参考页介绍了 IKsPropertySet 的 DirectSound 版本。 如果应用程序必须同时包含 ksproxy.hdsound.h,则编译器首先扫描的头文件都是编译器使用 IKsPropertySet 定义的头文件。

要求

要求
目标平台 桌面
标头 dsound.h (包括 Ksproxy.h、Ksproxy.h、Dsound.h、Ksproxy.h、Ksproxy.h、Dsound.h)

另请参阅

IKsPropertySet::Get