LTwain::CapabilityCallBack

#include "ltwrappr.h"

virtual L_INT LTwain::CapabilityCallBack (uCap, pCapability)

Handles each capability enumerated by the LTwain::EnumCapabilities function.

Parameters

L_UINT uCap

The capability being enumerated. For more information on capability values, refer to the TWAIN specification.

pTW_CAPABILITY pCapability

Pointer to the TW_CAPABILITY structure that references the capability data being enumerated. For more information about TW_CAPABILITY, refer to the TWAIN specification.

Returns

Value Meaning
SUCCESS The function was successful.
< 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).

To prevent memory leaks, free the pointer to the TW_CAPABILITY structure within the callback function.

This structure can be freed by a call to LTwain::FreeContainer then you can free the pointer using GlobalFreePtr macro defined in Windows.h.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LTwain::AddCapabilityToFile.

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

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