wiasSetValidListStr function (wiamdef.h)

The wiasSetValidListStr function sets the valid values for a WIA_PROP_LIST property of type VT_BSTR.

Syntax

HRESULT wiasSetValidListStr(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       ULONG  ulCount,
       BSTR   bstrNom,
  [in] BSTR   *bstrValues
);

Parameters

[in] pWiasContext

Pointer to a WIA item context.

propid

Specifies the identifier of the property to be updated.

ulCount

Specifies the number of items in the pbstrValues array.

bstrNom

Specifies the nominal value of the property.

[in] bstrValues

Pointer to the first element of an array of valid property values.

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.

Requirements

Requirement Value
Target Platform Desktop
Header wiamdef.h (include Wiamdef.h)
Library Wiaservc.lib
DLL Wiaservc.dll

See also

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListLong

wiasSetValidRangeFloat

wiasSetValidRangeLong