L_TwainResetDeviceEventCapability

Summary

Resets the device event capability (CAP_DEVICEEVENT) to the default values.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainResetDeviceEventCapability (hSession, pDeviceCap)

Parameters

HTWAINSESSION hSession

Handle to an existing TWAIN session. This handle is obtained by calling the L_TwainInitSession or L_TwainInitSession2 function.

pTW_CAPABILITY pDeviceCap

Pointer to the TW_CAPABILITY structure that references the capability value to reset. This structure must be allocated and filled with data corresponding to the required capability to reset.

Returns

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

Comments

This function should be called after calling L_TwainStartCapsNeg function and before calling L_TwainEndCapsNeg function.

To get the CAP_DEVICEEVENT capability values, call L_TwainGetDeviceEventCapability function.

To set the CAP_DEVICEEVENT capability value, call L_TwainSetDeviceEventCapability function.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TwainGetDeviceEventCapability.

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 API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.