L_EnableLicenseLogging

#include "l_bitmap.h"

L_LTKRN_API L_INT L_EnableLicenseLogging(bEnable, pszLogFile)

L_BOOL bEnable;

flag

L_TCHAR* pszLogFile;

name of log file

Enables or disabled LEADTOOLS runtime license logging.

Parameter Description
bEnable TRUE to enable license logging; FALSE to disable license logging.
pszLogFile Character string containing the license event logfile name.

Returns

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

LTKRN
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also
Structures: L_SetLicenseFile, L_VersionInfo, L_SetLicenseBuffer
Topics: Support Functions: Version and License Information
Setting a Runtime License

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help