LWia::EndSession

#include "ltwrappr.h"

virtual L_INT LWia::EndSession()

Ends a WIA session.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

This feature is available in LEADTOOLS version 16 or higher.

[LWia:EndSession cleans up and frees 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 any other functions. 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.

Notes

WIA 2.0 does not support cameras or streaming video.

If you are using the high-level LWia::AcquireSimple, you do not need to call LWia::InitSession, LWia::SelectDevice, or [LWia:EndSession because it handles session initialization, device selection, and session end automatically.

Required DLLs and Libraries

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.