InitSession method (ILEADRasterTwain)

Visual Basic Example

Visual C++ 5.0 Example

 

Syntax

short InitSession (long hWnd)

Overview

Refer to Initializing a TWAIN Session.

Remarks

Initializes the TWAIN session.

Please note that a TWAIN session is a communication session between LEADTOOLS TWAIN and your TWAIN sources. The internal TWAIN session handle that is created provides the user access to this TWAIN session. This method must be called before calling any other methods that require a TWAIN session.

When the TWAIN session is no longer needed, it should be ended by calling the EndSession method. For every call to the InitSession method there must be a call to the EndSession method.

See Also

Elements

ManName property, ProdFamily property, Version property, AppName property, SourceCount property, SourceName property, CapsCount property, Capability property, EndSession method, SelectSource method, SetCapability method, GetCapability method, QueryCapability method, Acquire method, ShowTemplateDlg method, SaveTemplate method, LoadTemplate method, FileTransferName property, MemBufSize property.

Topics

TWAIN Functionality: Session Functions