When the TWAIN session is no longer needed, the user must free the session resources by calling LTwain::EndSession. At this point the TWAIN session becomes invalid. Before acquiring any more images from a TWAIN source, the user must establish a new TWAIN session by calling LTwain::InitSession.