This function loads the specified Data Source into main memory and causes its initialization.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_TWAIN_source_open( HWND hMainWnd, LPCSTR lpszDSName, AT_BOOL bShowUI ); |
Name | Type | Description |
---|---|---|
hMainWnd | HWND | The handle of the main window in the application. |
lpszDSName | LPCSTR | The name of the Data Source to open. |
bShowUI | AT_BOOL | 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. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
This function does not process image pixels.
When an application is finished with the Data Source, call IG_TWAIN_source_close() to close the session between them.