wiasSetValidListStr 函式 (wiamdef.h)

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

語法

HRESULT wiasSetValidListStr(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       ULONG  ulCount,
       BSTR   bstrNom,
  [in] BSTR   *bstrValues
);

參數

[in] pWiasContext

WIA 專案內容的指標。

propid

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

ulCount

指定 pbstrValues 陣列中的項目數。

bstrNom

指定屬性的名稱值。

[in] bstrValues

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

傳回值

成功時,函式會傳回S_OK。 如果函式失敗,它會傳回標準 COM 錯誤或其中一個WIA_ERROR_XXX錯誤。

規格需求

需求
目標平台 桌面
標頭 wiamdef.h (包含Wiamdef.h)
程式庫 Wiaservc.lib
Dll Wiaservc.dll

另請參閱

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListLong

wiasSetValidRangeFloat

wiasSetValidRangeLong