Ends a TWAIN session.
#include "lttwn.h"
L_LTTWN_API L_INT L_TwainEndSession (phSession)
Pointer to a handle to an existing TWAIN session, created by calling the L_TwainInitSession function.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
! = SUCCESS | An error occurred. Refer to Return Codes. |
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.
For an example, refer to L_IsTwainAvailable.