Called by LTwain::TemplateDlg when an error occurs while saving capability data supported by a particular TWAIN source to a specific template file.
#include "ltwrappr.h"
virtual L_INT LTwain::SaveErrorCallBack (pCapability, uError)
Pointer to the TW_CAPABILITY structure that references the capability data that was being saved to a specific template file when the error occurred. For more information about TW_CAPABILITY, refer to the TWAIN specification.
Error code.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
SUCCESS_RETRY | Retry saving the capability value. |
SUCCESS_ABORT | Abort the saving procedure. |
SUCCESS_DELETE | Abort saving procedure and delete the file. |
This callback function will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack(TRUE).
The user should not free the pointer to the TW_CAPABILITY structure within this callback.
For an example, refer to LTwain::TemplateDlg.