This function starts the TWAIN process
[C++Builder/Visual
C++] HANDLE IKScanInitialize(HWND
hWnd, WORD MajorNum, WORD MinorNum, LPCSTR VersionInfo, LPCSTR
Manufacturer, LPCSTR ProductFamily, LPCSTR ProductName);
[Delphi] function
IKScanInitialize(hWnd: HWND; MajorNum, MinorNum: Word; VersionInfo,
Manufacturer, ProductFamily, ProductName: PAnsiChar):
THandle;
[Visual Basic] Function
IKScanInitialize(ByVal HWND As Long, ByVal MajorNum As Integer,
ByVal MinorNum As Integer, ByVal VersionInfo As String, ByVal
Manufacturer As String, ByVal ProductFamily As String, ByVal
ProductName As String) As Long
Parameters
Name | Explanation |
---|---|
hWnd | The form window handle |
MajorNum | The major version number of the application (If the version is 1.00, then this value will be 1) |
MinorNum | The minor version number of the application (If the version is 1.00, then this value will be 0) |
VersionInfo | The application version information (up to 32 bytes) |
Manufacturer | The name of the manufacturer of the application (up to 32 bytes) |
ProductFamily | The application's product family name (up to 32 bytes) |
ProductName | The application's product name (up to 32 bytes) |
Return Value
Returns the application handle if successful. Returns 0 if unsuccessful
Explanation
The IKScanInitialize function starts the TWAIN process. When
using TWAIN functions, the IKScanInitialize function must be
executed. MajorNum, MinorNum, VersionInfo, Manufacturer,
ProductFamily, and ProductName parameters are used the notify TWAIN
of various information about the application.
The return value (the application handle) of the IKScanInitialize
function is used by other scan functions.