L_EnableLicenseLogging

Summary

Enables or disabled LEADTOOLS runtime license logging.

Syntax

#include "l_bitmap.h"

L_LTKRN_API L_INT L_EnableLicenseLogging(bEnable, pszLogFile)

Parameters

L_BOOL bEnable

TRUE to enable license logging; FALSE to disable license logging.

L_TCHAR* pszLogFile

Character string containing the license event logfile name.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

When enabled, LEADTOOLS will write information about runtime license events, for example, when calling L_SetLicenseFile, into the specified file.

In order to obtain a runtime license and developer key, you must contact LEAD. For more information, refer to About LEADTOOLS Runtime Licenses.

For information about LEADTOOLS Document/Medical capabilities, contact LEAD.

To determine if support for optional features has been unlocked, use the L_IsSupportLocked function.

To set the runtime license from a memory buffer instead of a disk file, use the L_SetLicenseBuffer function.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Structures

Topics

Example

#define MY_LOG_FILE L_TEXT("d:\\temp\\TestLog.text") 
#define MY_LICENSE_FILE L_TEXT("d:\\temp\\TestLic.lic") 
#define MY_DEVELOPER_KEY L_TEXT("xyz123abc") 
 
L_INT EnableLicenseLoggingExample(L_VOID) 
{ 
   L_INT nRet; 
 
   /* enable the runtime license logging */ 
   nRet  = L_EnableLicenseLogging(L_TRUE, MY_LOG_FILE); 
 
   /* set the runtime license */ 
   nRet = L_SetLicenseFile(MY_LICENSE_FILE, MY_DEVELOPER_KEY); 
 
   /* check for unlocked support */ 
   if (L_IsSupportLocked(L_SUPPORT_MEDICAL)) 
      MessageBox(NULL, L_TEXT("Medical Locked\n"), L_TEXT(""), MB_OK); 
   else 
      MessageBox(NULL, L_TEXT("Medical Unlocked\n"), L_TEXT(""), MB_OK); 
 
   return nRet; 
} 
Help Version 22.0.2023.7.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.