LWia::EndSession

#include "ltwrappr.h"

virtual L_INT LWia::EndSession()

Ends a WIA session.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This feature is available in LEADTOOLS version 16 or higher.

This function will clean up and free memory allocated during the WIA session.

Whenever calling any of the LEADTOOLS WIA functions except for LWia::AcquireSimple. The LWia::InitSession function must be called to begin a session prior to calling the other function. For each call to LWia::InitSession there must be a call to LWia::EndSession to end the session. The LWia::EndSession function should be the last function to be called in the toolkit.

Note:

You do not need to call LWia::EndSession if you are using the high-level LWia::AcquireSimple function, since it handles session initialization, session end, and device selection automatically.

Required DLLs and Libraries

LTWIA

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 WIA C++ Class Library Help