This function closes the scan device
[C++Builder/Visual
C++] BOOL IKScanCloseDS(HANDLE
AppHandle, HANDLE SrcHandle);
[Delphi] function
IKScanCloseDS(AppHandle, SrcHandle: THandle): LongBool;
[Visual Basic] Function
IKScanCloseDS(ByVal AppHandle As Long, ByVal SrcHandle As Long) As
Long
Parameters
Name | Explanation |
---|---|
AppHandle | The application handle retrieved by IKScanInitialize |
SrcHandle | The scan device handle retrieved by IKScanOpenDS |
Return Value
Returns True (nonzero) when successful, returns False (0) when not successful.
Explanation
The IKScanCloseDS function closes the datasource that was opened by the IKScanOpenDS function and frees the datasource handle. If an invalid value is set in the SrcHandle then an error will be generated.