LTwain::SetCapability

Summary

Sets the value of the specified capability.

Syntax

#include "ltwrappr.h"

virtual L_INT LTwain::SetCapability (pCapability, uFlags)

Parameters

pTW_CAPABILITY pCapability

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.

L_UINT uFlags

Flags that indicate whether to set or reset the capability value.  Possible values are:

Value Meaning
LTWAIN_CAPABILITY_SET [1] Set the capability to the value specified in pCapability.
LTWAIN_CAPABILITY_RESET [2] Reset the value of the capability to the default value defined by the TWAIN source. In this case the pCapability can be NULL since it is not needed.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LTwain::Acquire.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.