This method starts the TWAIN process.
[Visual Basic] [ Boolean
=
]imagekitcontrolname.Scan.Initialize(Hwnd As
Long, 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
Hwnd, short MajorNum, short MinorNum, LPCTSTR VersionInfo, LPCTSTR
Manufacturer, LPCTSTR ProductFamily, LPCTSTR 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.