LWia::EndSession

Summary

Ends a WIA session.

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::EndSession()

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

See Also

Functions

Topics

Example

For an example, refer to LWia::IsAvailable.

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

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