L_TwainSetDeviceEventCapability

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainSetDeviceEventCapability (hSession, pDeviceCap)

HTWAINSESSION hSession;

handle to an existing TWAIN session

pTW_CAPABILITY pDeviceCap;

pointer to a structure

Sets the device event capability (CAP_DEVICEEVENT) values for the current TWAIN session.

Parameter

Description

hSession

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

pDeviceCap

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.

Returns

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 reset the CAP_DEVICEEVENT capability values to the default values, call L_TwainResetDeviceEventCapability function.

Required DLLs and Libraries

LTTWN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files to be Included with your Application.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS TWAIN C API Help