This method starts the TWAIN process.

[Visual Basic]   [ Boolean = ]imagekitcontrolname.Scan.Initialize(hWnd As LONG_PTR, MajorNum As Integer, MinorNum As Integer, VersionInfo As String, Manufacturer As String, ProductFamily As String, ProductName As String)
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetScan().Initialize(LONG_PTR hWnd, short MajorNum, short MinorNum, LPCTSTR VersionInfo, LPCTSTR Manufacturer, LPCTSTR ProductFamily, LPCTSTR ProductName)
[VB.NET]   [ Boolean = ]imagekitcontrolname.Scan.Initialize(hWnd As Integer(x86) or Long(x64), MajorNum As Short, MinorNum As Short, VersionInfo As String, Manufacturer As String, ProductFamily As String, ProductName As String)
[C#.NET]   [ bool = ]imagekitcontrolname.Scan.Initialize(int(x86) or long(x64) hWnd, short MajorNum, short MinorNum, string VersionInfo, string Manufacturer, string ProductFamily, string ProductName)

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 True (nonzero) when successful, returns False (0) when not successful.

Explanation

The Initialize method starts the TWAIN process. When using TWAIN functions, the Initialize method must be executed. MajorNum, MinorNum, VersionInfo, Manufacturer, ProductFamily, and ProductName parameters are used the notify TWAIN of various information about the application.

If the hWnd parameter cannot be passed to the window handle then pass 0 instead.

The Initialize method corresponds to the Scan Control's ScanInitialize method in earlier versions of the ImageKit.

Difference between the ImageKit7/8

The hWnd parameter's type has changed.

 

The ImageKit9 ActiveX is a product created by Newtone Corporation