L_LTTWN_API L_INT L_TwainSetDeviceEventCapability (hSession, pDeviceCap)
Sets the device event capability (CAP_DEVICEEVENT) values for the current TWAIN session.
Pointer to the TW_CAPABILITY structure that references the capability value to set. This structure must be allocated and filled with data corresponding to the required capability before passing it to the function.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
To get the CAP_DEVICEEVENT capability values, call L_TwainGetDeviceEventCapability function.
To reset the CAP_DEVICEEVENT capability values to the default values, call L_TwainResetDeviceEventCapability function.
Required DLLs and Libraries
For an example, refer to L_TwainGetDeviceEventCapability.