共用方式為


wiasWriteMultiple 函式 (wiamdef.h)

wiasWriteMultiple 函式會將多個屬性值寫入 WIA 專案。

語法

HRESULT wiasWriteMultiple(
  [in] BYTE              *pWiasContext,
       ULONG             ulCount,
  [in] const PROPSPEC    *ps,
       const PROPVARIANT *pv
);

參數

[in] pWiasContext

WIA 專案內容的指標。

ulCount

指定要寫入的屬性總數。

[in] ps

指出要寫入之屬性之 PROPSPEC 結構陣列之第一個專案的指標。

pv

PROPVARIANT 結構陣列之第一個專案的指標,其中包含要寫入專案的值。

傳回值

成功時,函式會傳回S_OK。 如果函式失敗,它會傳回標準 COM 錯誤或其中一個WIA_ERROR_XXX錯誤(如 Microsoft Windows SDK 檔中所述)。

言論

此函式的運作方式與 IPropertyStorage::WriteMultiple類似,如 Windows SDK 檔中所述。 Windows SDK 檔也會說明 PROPSPEC 和 PROPVARIANT 結構。

要求

要求 價值
最低支援的用戶端 Microsoft Windows Me 和 Windows XP 和更新版本的 Windows作系統中提供。
目標平臺 桌面
標頭 wiamdef.h (包括 Wiamdef.h)
連結庫 Wiaservc.lib
DLL Wiaservc.dll

另請參閱

wiasReadMultiple