When the TWAIN session handle is no longer needed, free the handle by calling L_TwainEndSession. At this point the TWAIN session handle becomes invalid. Before acquiring more images from a TWAIN source, establish a new TWAIN session handle by calling L_TwainInitSession or L_TwainInitSession2.
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms