wiasSetItemPropNames function (wiamdef.h)

The wiasSetItemPropNames function writes property names to item properties.

Syntax

HRESULT wiasSetItemPropNames(
  [in]      BYTE     *pWiasContext,
            LONG     cItemProps,
  [in, out] PROPID   *ppId,
  [in, out] LPOLESTR *ppszNames
);

Parameters

[in] pWiasContext

Pointer to a WIA item context.

cItemProps

Specifies the number of property names to write.

[in, out] ppId

Pointer to the first element of a caller-allocated array of property identifiers (PROPIDs).

[in, out] ppszNames

Pointer to the first element of a caller-allocated array of property names to write.

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).

Remarks

Minidrivers typically use this function when initializing item properties. The order of property identifiers in ppId must match the order of property names in ppSzNames.

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

wiasSetItemPropAttribs