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