wiasSetValidFlag function

The wiasSetValidFlag function sets the valid values for a WIA_PROP_FLAG property.

Syntax

HRESULT wiasSetValidFlag(
  BYTE   *pWiasContext,
  PROPID propid,
  ULONG  ulNom,
  ULONG  ulValidBits
);

Parameters

pWiasContext

Pointer to a WIA item context.

propid

Specifies the identifier of the property to be updated.

ulNom

Specifies the property's nominal value.

ulValidBits

Specifies the valid bits that can be used for the WIA_PROP_FLAG property.

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

   
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

wiasSetValidListFloat

wiasSetValidListGuid

wiasSetValidListLong

wiasSetValidListStr

wiasSetValidRangeFloat

wiasSetValidRangeLong