wiasWritePropStr 函数 (wiamdef.h)

wiasWritePropStr 函数将单个字符串属性值写入 WIA 项。

语法

HRESULT wiasWritePropStr(
  [in]           BYTE   *pWiasContext,
                 PROPID propid,
  [in, optional] BSTR   bstr
);

参数

[in] pWiasContext

指向 WIA 项上下文的指针。

propid

指定属性标识符。

[in, optional] bstr

指定要写入项的字符串属性值。

返回值

成功后,该函数将返回S_OK。 如果函数失败,它将返回标准 COM 错误或WIA_ERROR_XXX错误之一(Microsoft Windows SDK 文档中所述)。

要求

要求 价值
最低支持的客户端 Microsoft Windows Me 和 Windows XP 及更高版本的 Windows作系统中提供。
目标平台 桌面
标头 wiamdef.h (包括 Wiamdef.h)
Wiaservc.lib
DLL Wiaservc.dll

另请参阅

wiasReadPropStr

wiasWritePropBin

wiasWritePropFloat

wiasWritePropGuid

wiasWritePropLong