logo_wupi_64x64px Automatic Allocation of Licenses

Some WUPI functions automatically try to access a license of the given license list, if this has not been done before. For these functions a previous call of WupiAllocateLicense is not necessary. The following WUPI functions automatically allocate a license, if not done before:

•WupiCheckLicense

•WupiDecryptCode (indirectly via the license list that is configured for the function)

•WupiEncryptCode (indirectly via the license list that is configured for the function)

All other functions require an allocation of a license before they can successfully called. So either WupiAllocateLicense or one of the functions above needs to be called, e.g. before you can retrieve information by WupiQueryInfo. If a license was not allocated before, the functions will set error UpiErrorLicenseNotAllocated

In general, the license is not released automatically, it remains allocated until one of the following events occur:

•the application exits

•you call WupiFreeLicense

•the cleanup timeout of the application has been reached (no use of the license (e.g. by WupiCheckLicense) for the last x minutes (default for CodeMeter 120, for WibuKey 1440)).