Initializing a TWAIN Session
To begin using the LEADTOOLS TWAIN toolkit, the user must initialize a Twain session. This is done by calling the LTwain::InitSession function. This session is required before you can perform any other Twain operations, so this function must be called before calling other LEADTOOLS TWAIN functions.
After establishing the TWAIN session, the user can now select the TWAIN source he or she wants to use for acquiring images. For more information on this, refer to Managing the TWAIN Source.