ImageGear Professional DLL v17.1 for Windows Accusoft
IG_TWAIN_source_open
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > TWAIN Component API Reference > TWAIN Component Functions Reference > Source Functions > IG_TWAIN_source_open

Glossary Item Box

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:

When an application is finished with the Data Source, call IG_TWAIN_source_close() to close the session between them.

©2012. Accusoft Corporation. All Rights Reserved.