共用方式為


IKsPropertySet::Set 方法 (ksproxy.h)

Set 方法會設定屬性集 GUID 和屬性識別碼所識別的屬性。

語法

HRESULT Set(
  [in] REFGUID PropSet,
  [in] ULONG   Id,
  [in] LPVOID  InstanceData,
  [in] ULONG   InstanceLength,
  [in] LPVOID  PropertyData,
  [in] ULONG   DataLength
);

參數

[in] PropSet

識別屬性集的 GUID。

[in] Id

屬性集內屬性的標識碼。

[in] InstanceData

屬性之實例數據的指標。

[in] InstanceLength

InstanceData的緩衝區大小,以位元組為單位。

[in] PropertyData

緩衝區的指標,其中包含要設定之 屬性的值。

[in] DataLength

PropertyData的緩衝區大小,以位元組為單位。

傳回值

如果成功,則傳回 NOERROR;否則,會傳回錯誤碼。

言論

警告

頭檔 ksproxy.hdsound.h 定義類似但不相容的 IKsPropertySet 介面版本。 需要 KS Proxy 模組的應用程式應該使用 ksproxy.h中定義的版本。 如果應用程式必須同時包含 ksproxy.hdsound.h,則編譯程式會先掃描哪一個頭檔是編譯程式 IKsPropertySet 的定義。

要求

要求 價值
目標平臺 桌面
標頭 ksproxy.h (包括 Ksproxy.h、Dsound.h)

另請參閱

IKsPropertySet::Get