Bewerken

Delen via


wiasWritePropBin function (wiamdef.h)

The wiasWritePropBin function writes a single binary-data property value to a WIA item.

Syntax

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

Parameters

[in] pWiasContext

Pointer to a WIA item context.

propid

Specifies the property identifier.

cbVal

Specifies the total number of bytes to write to the item.

[in] pbVal

Pointer to the first byte of an array of bytes to be written to the item.

Return value

On success, the function returns S_OK. If the function fails, it returns a standard COM error or one of the WIA_ERROR_XXX errors (described in the Microsoft Windows SDK documentation).

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows Me and in Windows XP and later versions of the Windows operating systems.
Target Platform Desktop
Header wiamdef.h (include Wiamdef.h)
Library Wiaservc.lib
DLL Wiaservc.dll

See also

wiasReadPropBin

wiasWritePropFloat

wiasWritePropGuid

wiasWritePropLong

wiasWritePropStr