virtual L_INT LWia::EndSession()
Ends a WIA session.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
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.
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