This function opens the scan device
[C++Builder] HANDLE
IKScanOpenDS(HANDLE AppHandle, LPCSTR ScanDsName);
[Delphi] function
IKScanOpenDS(AppHandle: THandle; ScanDsName: PChar ):
THandle;
Parameters
Name | Explanation |
---|---|
AppHandle | The application handle retrieved by IKScanInitialize |
ScanDsName | The name of the open scan device |
Return Value
Returns the datasource handle if successful. Returns 0 if unsuccessful.
Explanation
The IKScanOpenDS function opens the datasource set in the ScanDsName parameter.
If the ScanDsName parameter is blank, please execute the IKScanSelect function prior to executing the IKScanOpenDS function. (When the ScanDsName parameter is blank or null, the datasource is selected by the IKScanSelect function).
Note: If a datasource (scan device) is opened by executing IKScanOpenDS then no other applications can access that datasource until it is closed using IKScanCloseDS.