Called for each enumerated capability of the WIA device, and also allows the enumeration process to be aborted. Be sure to enable the callback functions beforehand by calling LBase::EnableCallBack (TRUE).
#include "ltwrappr.h"
virtual L_INT LWia::EnumFormatsCallBack(nFormatsCount, nTransferMode, pFormat)
The count of the enumerated WIA device formats.
The transfer mode for the received enumerated format.
Pointer to a GUID structure containing the received enumerated format.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This feature is available in LEADTOOLS version 16 or higher.
Call this function to provide the user with information about the available transfer formats of the selected WIA device. It can also be called to abort the enumeration process.
For an example, refer to LWia::EnumFormats.