wiasSetValidRangeLong function (wiamdef.h)

The wiasSetValidRangeLong function specifies the range of valid values for a WIA_PROP_RANGE property of type VT_I4.

Syntax

HRESULT wiasSetValidRangeLong(
  [in] BYTE   *pWiasContext,
       PROPID propid,
       LONG   lMin,
       LONG   lNom,
       LONG   lMax,
       LONG   lStep
);

Parameters

[in] pWiasContext

Pointer to a WIA item context.

propid

Specifies the identifier of the property to be updated.

lMin

Specifies the minimum value of the valid range.

lNom

Specifies the property's nominal value.

lMax

Specifies the maximum value of the valid range.

lStep

Specifies the increment between each valid value in the range.

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

wiasSetValidFlag

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListLong

wiasSetValidListStr

wiasSetValidRangeFloat