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)
Library Wiaservc.lib
DLL Wiaservc.dll

另请参阅

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListLong

wiasSetValidRangeFloat

wiasSetValidRangeLong