// wiamdef.h
HRESULT wiasReadPropLong(
[in] BYTE *pWiasContext,
PROPID propid,
[out] LONG *plVal,
[out, optional] LONG *plValOld,
BOOL bMustExist
);
View the official Windows Driver Kit DDI referenceNo description available.
The wiasReadPropLong function retrieves a long integer property value from a WIA item.
pWiasContext [in]Pointer to a WIA item context.
propidSpecifies the property identifier.
plVal [out]Pointer to a memory location that receives the value of the property.
plValOld [out, optional]Pointer to a memory location that receives the property's previous value. If this information is not needed, set this parameter to NULL.
bMustExistIndicates whether the property must exist. If set to TRUE, the property must exist, if set to FALSE, the property does not have to exist.
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).