From TWAIN you can control whether to scan from flatbed or auto feeder. And if ADF, how many pages you want to scan per session. Related TWAIN capabilities you can check:
- CAP_FEEDERENABLED
- CAP_AUTOFEED
- CAP_XFERCOUNT: Number of images the application is willing to accept this session
You can refer to the TWAIN specification here.