共用方式為


wiasWritePropFloat 函式 (wiamdef.h)

wiasWritePropFloat 函式會將單一浮點屬性值寫入 WIA 專案。

語法

HRESULT wiasWritePropFloat(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       float  fVal
);

參數

[in] pWiasContext

WIA 專案內容的指標。

propid

指定屬性識別碼。

fVal

指定要寫入專案的浮點屬性值。

傳回值

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

規格需求

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

另請參閱

wiasReadPropFloat

wiasWritePropBin

wiasWritePropGuid

wiasWritePropLong

wiasWritePropStr