共用方式為


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