This function loads the specified Data Source into main memory and causes its initialization.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_TWAIN_source_open( HWND hMainWnd, LPCSTR lpszDSName, AT_BOOL bShowUI); |
Arguments:
hMainWnd | The handle of the main window in the application. |
lpszDSName | The name of the Data Source to open. |
bShowUI | If set to TRUE and lpszDSName is NULL a call to this function will cause Data Source Manager to display the default source selection dialog. |
Return Value:
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
Supported Raster Image Formats:
This function does not process image pixels.
Remarks:
- If lpszDSName is NULL and bShowUI is set to TRUE, a call to this function will cause Data Source Manager to display the default source selection dialog.
- If lpszDSName is NULL and bShowUI is set to FALSE, the default Data Source will be opened.
- If lpszDSName is a name of an existing Data Source, the specified Data Source will be opened.
When an application is finished with the Data Source, call IG_TWAIN_source_close() to close the session between them.