This method starts the TWAIN process.
[Visual Basic] Public Function Initialize(
ByVal hWnd As IntPtr, ByVal majorNumber As Integer, ByVal
minorNumber As Integer, ByVal versionInfomation As String, ByVal
manufacturer As String, ByVal productFamily As String, ByVal
productName As String ) As Boolean
[C#] public bool Initialize( IntPtr
hWnd, int majorNumber, int minorNumber, string
versionInfomation, string manufacturer, string
productFamily, string productName );
Parameters
- hWnd
- The form window handle
- majorNumber
- The major version number of the application (If the version is 1.00, then this value will be 1)
- minorNumber
- The minor version number of the application (If the version is 1.00, then this value will be 0)
- versionInfomation
- 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 if successful. Returns False if unsuccessful.
Explanation
The Initialize method starts the TWAIN process. When using TWAIN functions, the Initialize method must be executed. MajorNumber, MinorNumber, VersionInfomation, Manufacturer, ProductFamily, ProductName parameters are used to notify TWAIN of various information about the application.
See Also
Scan Members | Newtone.ImageKit.Win.ImageKit