The wiasUpdateScanRect function updates the scanning area sizes of the scanning device.
HRESULT wiasUpdateScanRect( BYTE *pWiasContext, WIA_PROPERTY_CONTEXT *pContext, LONG lWidth, LONG lHeight );
Pointer to a WIA item context.
Specifies the horizontal width of the scanning area of the scanning device, in units of thousandths of an inch. Normally, this is the horizontal bed size.
Specifies the vertical height of the scanning area of the scanning device, in units of thousandths of an inch. Normally, this is the vertical bed size.
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).
This helper method is called to update the properties making up the scan rectangle. The appropriate changes are made to the properties that are dependent on those that make up the scan rectangle. For example, a change in horizontal resolution affects the horizontal extent. This function assumes that the valid values for the vertical and horizontal extents, and vertical and horizontal positions have not yet been updated.
|Minimum supported client||Available in Microsoft Windows Me and in Windows XP and later versions of the Windows operating systems.|
|Header||wiamdef.h (include Wiamdef.h)|