The LWia::EnumCapabilitiesCallBack is called for each enumerated capability of the WIA device. It can also be used to abort the enumeration process. Be sure to first enable the callback functions by calling LBase::EnableCallBack(TRUE).
#include "ltwrappr.h"
virtual L_INT LWia::EnumCapabilitiesCallBack(nCapsCount, pCapability)
The count of the enumerated WIA device capabilities.
Pointer to a structure of type LWIACAPABILITY containing information about each enumerated capability of the selected WIA device.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
ERROR_USER_ABORT | The callback wants to abort the properties set process. |
< 1 | An error occurred. Refer to Return Codes. |
This feature is available in LEADTOOLS version 16 or higher.
Call LWia::EnumCapabilitiesCallBack to provide information about the capabilities of the selected WIA device. LWia::EnumCapabilitiesCallBack also allows the enumeration process to be aborted.
For an example, refer to LWia::EnumCapabilities.