共用方式為


wiasWritePropBin 函式 (wiamdef.h)

wiasWritePropBin 函式會將單一二進位數據屬性值寫入 WIA 專案。

語法

HRESULT wiasWritePropBin(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       LONG   cbVal,
  [in] BYTE   *pbVal
);

參數

[in] pWiasContext

WIA 專案內容的指標。

propid

指定屬性識別碼。

cbVal

指定要寫入專案的位元組總數。

[in] pbVal

要寫入專案之位元組陣列之第一個字節的指標。

傳回值

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

規格需求

需求
最低支援的用戶端 可在 Microsoft Windows Me 和 Windows XP 和更新版本的 Windows 作業系統中使用。
目標平台 桌面
標頭 wiamdef.h (包含Wiamdef.h)
程式庫 Wiaservc.lib
Dll Wiaservc.dll

另請參閱

wiasReadPropBin

wiasWritePropFloat

wiasWritePropGuid

wiasWritePropLong

wiasWritePropStr