RecAPI
|
Dynamic linking of KernelAPI. This module is supported on: Windows. More...
Functions | |
RECERR RECAPIKRN | kRecInitS (LPCTSTR pRecPath, LPCTSTR pCompanyName, LPCTSTR pProductName) |
Initializing KernelAPIS. | |
RECERR RECAPIKRN | kRecQuitS (void) |
Closing KernelAPIS. | |
RECERR RECAPIKRN | kRecSetLicenseS (LPCTSTR pLicenseFile, LPCTSTR pCode) |
Setting the OEM license information. |
Dynamic linking of KernelAPI. This module is supported on: Windows.
There may be a general problem with DLL's that they must be located on one of some predetermined pathes. It may constrain the distribution of the integrating application. The KernelAPIS module solves this problem.
KernelAPIS is a wrapper on the module KernelAPI, which makes possible to separate the integrating application from the files of the OmniPage CSDK 20 without putting the folder of the CSDK into the environment variable PATH
. In fact, this may be one of some little static libraries. Depending on how the release version of the integrating application uses the C run-time libraries, one of the following KernelAPIS static libraries should be linked to the application:
KrnAPIS_MS.LIB
- multi-threaded C run-time library - statically linked,KrnAPIS_MDyn.LIB
- multi-threaded C run-time library - dynamically linked.The debug version of the integrating application requires a static library to be linked as follows:
KrnAPIS_MSd.LIB
- multi-threaded C run-time library - statically linked,KrnAPIS_MDynd.LIB
- multi-threaded C run-time library - dynamically linked.It is a thin interface layer for binding the Engine at run-time. It loads the KernelAPI from a specified path and gets all the entry points of the KernelAPI.DLL
(kRecInitS). Unloading also can be controlled by the integrating application (kRecQuitS).
RECERR RECAPIKRN kRecInitS | ( | LPCTSTR | pRecPath, |
LPCTSTR | pCompanyName, | ||
LPCTSTR | pProductName | ||
) |
Initializing KernelAPIS.
This function initializes the module KernelAPIS, which includes the initialization of KernelAPI. Except for kRecSetLicenseS, the functions of KernelAPI should not be called before initialization. This function allows the integrating application to bind the Engine by enumerating the modules installed in the Engine Binary directory, determining the configuration of the Engine and initializing its modules (i.e. by calling kRecInit from inside).
[in] | pRecPath | Full path to the Engine Binary directory, i.e. where the Engine files are located. NULL kRecInitS searches Engine files beside the application process EXE. Relative path from the application process EXE where the Engine files are located. |
[in] | pCompanyName | Name of the User's Company. It can be NULL. Default value: Nuance . It can be used for creating a company-specific working folder for temporary and other files generated by KernelAPI. |
[in] | pProductName | Name of the Product or Application. It can be NULL. Default value: OmniPageCSDK20 . It can be used for creating an application-specific working folder for temporary and other files generated by KernelAPI. |
RECERR |
RECERR RECAPIKRN kRecQuitS | ( | void | ) |
Closing KernelAPIS.
This function closes the module KernelAPIS, which includes the closing of KernelAPI. This function should be called only when the initialization used by the integrating application calls kRecInitS.
RECERR |
RECERR RECAPIKRN kRecSetLicenseS | ( | LPCTSTR | pLicenseFile, |
LPCTSTR | pCode | ||
) |
Setting the OEM license information.
The kRecSetLicenseS function sets the OEM license information. In the case of an OEM distribution this function must be called before kRecInitS.
[in] | pLicenseFile | Name of the license file or the fully qualified path to the license file (an LCX or LCXZ file). On Windows this parameter is usually NULL. In this case the Nuance License Service is running and the OEM license file is already loaded by the Nuance License Tool. |
[in] | pCode | OEM Code string. (It's a pointer to the string itself, not a pointer to the file name containing the OEM Code!) |
RECERR |
kRecInitS
. pLicenseFile
) of kRecSetLicenseS
must be NULL. Note that the OEM Code (pCode
) parameter must be non-NULL and must correspond to the installed license file even this case!