wiasWritePropBin 函数 (wiamdef.h)

wiasWritePropBin 函数将单个二进制数据属性值写入 WIA 项。

语法

HRESULT wiasWritePropBin(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       LONG   cbVal,
  [in] BYTE   *pbVal
);

参数

[in] pWiasContext

指向 WIA 项上下文的指针。

propid

指定属性标识符。

cbVal

指定要写入项的字节总数。

[in] pbVal

指向要写入项的字节数组的第一个字节的指针。

返回值

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

要求

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

另请参阅

wiasReadPropBin

wiasWritePropFloat

wiasWritePropGuid

wiasWritePropLong

wiasWritePropStr