By specifying a number of pages to scan in the ScanLowAcquirePages function, the developer can control how many pages are scanned at one time. After each requested page is scanned, the function will send a windows message, WM_IMSCAN, to the application's window specified in the call to ScanLowInitTwainJob(). The wParam parameter of the message contains a handle to the DIB for the acquired image. This handle can be used as is, or an ImageMan handle can be created using the ImgFromDIB() function.
It is up to the application to free the DIB images returned from the scanner using the GlobalFree() function.
© 1995-2004 Data Techniques, Inc. All rights reserved.