Table of contents
Development
Installation
On the development system
- Run the ClearImage PDK installation file
- Run the ClearImage OEM SDK installation file.
- Register Stamper application, using the Stamper certificate provided by Inlite
- Register a test certificate provided by Inlite, in order to develop and debug the OEM application before the final release is built and stamped.
Application code
Add the following code before any other calls to ClearImage API
C#
123
Server.GetThreadServer().OpenExt( System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0]).ToInt32(), ZZZZZZZZ, 0);
VB
123
Server.GetThreadServer().OpenExt( System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Assembly.GetExecutingAssembly().GetModules()(0)).ToInt32(), ZZZZZZZZ, 0)
C++
12
CiServer Ci = new CiServer(); Ci->OpenExt ((long) GetModuleHandle(NULL), ZZZZZZZZ, 0);
VB6
123
Dim Ci As ClearImage.CiServer Set Ci = New CiServer Ci.OpenExt App.hInstance, ZZZZZZZZ, 0
Final build
Use the stamper to embed the OEM license in the OEM application.
Execute the command line:
PF\ClearImage\COM\_MasterID_0 -ftarget
Where:
PF | c:\Program Files folder on 32-bit Windows c:\Program Files (x86) folder on 64-bit Windows |
ftarget | OEM application full path name |
Stamper return errorlevel values to automate batch processing.
errorlevel | Description |
0 | Operation successful |
401 (0×191) | Invalid command line parameter |
402 (0×192) | OEM application file does not exist or can not be open |
404 (0×194) | OEM application file name is not valid for this OEM SDK |
416 (0×193) | OEM Stamper is not registered |
Other codes | Contact Inlite technical support |