L_TwainEndSession

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainEndSession (phSession)

pHTWAINSESSION phSession;

/* handle to an existing session handle */

Ends a TWAIN session.

Parameter

Description

phSession

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

Returns

SUCCESS

The function was successful.

! = SUCCESS

An error occurred. Refer to Return Codes.

Comments

A TWAIN session is started by calling the L_TwainInitSession function.

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

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.

See Also

Functions:

L_TwainInitSession.

Topics:

Freeing the TWAIN Session

 

TWAIN Functionality: Session Functions.

Example

For an example, refer to L_IsTwainAvailable.