wiasWritePropStr function (wiamdef.h)

The wiasWritePropStr function writes a single string property value to a WIA item.

Syntax

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

Parameters

[in] pWiasContext

Pointer to a WIA item context.

propid

Specifies the property identifier.

[in, optional] bstr

Specifies the string property value to write 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

wiasReadPropStr

wiasWritePropBin

wiasWritePropFloat

wiasWritePropGuid

wiasWritePropLong