Glossary Item Box
This function displays a dialog box which allows the user to select the default TWAIN device.
|
Parameter |
Type |
Description |
|
hWnd |
HWND |
Handle to a Window to be used as the parent for the TWAIN dialog. |
Return Value
The return value is SCAN_OK if a Source was selected otherwise SCAN_ERROR if TWAIN is not resident.
Example
if( ScanIsTwainAvailable() ) {
if( ScanSelectSource() == SCAN_OK )
// Error loading TWAIN support
else
// Do some scanning, etc.
}
Copyright 2008 Data Techniques, Inc. All Rights Reserved