wiasSetValidListLong 函式 (wiamdef.h)

wiasSetValidListLong 函式會設定類型為 VT_I4 WIA_PROP_LIST 屬性的有效值。

語法

HRESULT wiasSetValidListLong(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       ULONG  ulCount,
       LONG   lNom,
       LONG   *plValues
);

參數

[in] pWiasContext

WIA 專案內容的指標。

propid

指定要更新之屬性的識別碼。

ulCount

指定 plValues 陣列中的項目數。

lNom

指定屬性的名稱值。

plValues

有效屬性值陣列之第一個專案的指標。

傳回值

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

規格需求

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

另請參閱

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListStr

wiasSetValidRangeFloat

wiasSetValidRangeLong