L_TwainEndSession

Summary

Ends a TWAIN session.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainEndSession (phSession)

Parameters

pHTWAINSESSION phSession

Pointer to a handle to an existing TWAIN session, created by calling the L_TwainInitSession function.

Returns

Value Meaning
SUCCESS The function was successful.
! = SUCCESS An error occurred. Refer to Return Codes.

Comments

A TWAIN session is started by calling the TWAIN initialization functions such as L_TwainInitSession and L_TwainInitSession2.

For each call to L_TwainInitSession there must be a call to L_TwainEndSession. This function should be the last function to be called in the toolkit. It will clean up and free memory allocated during the TWAIN session.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_IsTwainAvailable.

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