LTwain::SaveCapCallBack

Summary

Called by LTwain::TemplateDlg for each capability supported by a particular TWAIN source, before saving it to a specific template file.

Syntax

#include "ltwrappr.h"

virtual L_INT LTwain::SaveCapCallBack (pCapability)

Parameters

pTW_CAPABILITY pCapability

Pointer to the TW_CAPABILITY structure that references the capability data to save to the specified template file. For more information about TW_CAPABILITY, refer to the TWAIN specification.

Returns

Value Meaning
SUCCESS The function was successful.
SUCCESS_ABORT The callback wants to abort the saving procedure.
SUCCESS_DELETE Abort saving procedure and delete the file.
< 1 An error occurred. Refer to Return Codes.

Comments

This callback function will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack(TRUE).

The user can only modify the capability data before saving it to the specified template file.

The user should not free the pointer to the TW_CAPABILITY structure within this callback.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LTwain::TemplateDlg.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.