SetCurrentLicense Method of the Engine Object
This method sets the current license.
Important! All the ABBYY FineReader Engine objects which were in use before this method call become invalid (except the current Engine object and the License object which was passed to this method). The only thing you can do with these objects is to call the Release method for them.
HRESULT SetCurrentLicense( ILicense* TargetLicense, VARIANT_BOOL IsSharedCPUCoresMode );
void SetCurrentLicense( ILicense TargetLicense, bool IsSharedCPUCoresMode );
Visual Basic .NET
Sub SetCurrentLicense( _ TargetLicense As ILicense, IsSharedCPUCoresMode As Boolean _ )
- [in] Refers to the License object representing the current license. Any object from the collection of available licenses (obtained using the IEngine::GetAvailableLicenses method) can be passed to this parameter.
- [in] Specifies whether the CPU cores should be used in shared mode. There are two modes of CPU cores usage: separate and shared. In separate mode ABBYY FineReader Engine uses no more processes than it is allowed by the license. In shared mode any number of processes can be run, but all these processes will use only the CPU cores specified by the IMultiProcessingParams::SharedCPUCoresMask property.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.