#include "l_bitmap.h"
L_LTKRN_API L_INT L_VersionInfo(pVersionInfo, uStructSize)
pVERSIONINFO pVersionInfo; |
pointer to the VERSIONINFO structure |
L_UINT uStructSize; |
size of the structure pointed to by pVersionInfo |
Loads LEADTOOLS product information into a structure.
Parameter |
Description |
pVersionInfo |
Pointer to the VERSIONINFO structure. |
uStructSize |
Size of the VERSIONINFO structure pointed to by pLoadOptions. The size of this structure must be specified. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
To use this function, declare a VERSIONINFO variable and pass its address as the parameter of this function. The function updates the fields in the structure. For field descriptions, refer to the VERSIONINFO structure.
Required DLLs and Libraries
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64, Linux.
Functions: |
L_SetLicenseFile, L_IsSupportLocked, L_SetLicenseBuffer, L_EnableLicenseLogging |
Topics: |
|
|
For complete sample code, refer to the INFO example. This example gets product information and displays it in a message box
L_INT VersionInfoExample(L_VOID)
{
L_INT nRet;
VERSIONINFO VersionInfo; /* LEAD Version Information structure. */
L_TCHAR szMessage[ 1024 ]; /* Buffer to hold information for display. */
/* Get the version information */
VersionInfo.uStructSize = sizeof(VERSIONINFO);
nRet = L_VersionInfo(&VersionInfo, sizeof(VERSIONINFO));
if(nRet != SUCCESS)
return nRet;
/* Format the message string with data from the VERSIONINFO structure */
wsprintf(szMessage,
TEXT("LEAD Product: %hs, %hs\n\n")
TEXT("Version %d.%d\n\n")
TEXT("Date: %hs\n\n")
TEXT("Time: %hs"),
(L_CHAR *)VersionInfo.Product,
(L_CHAR *)(VersionInfo.Level == TOOLKIT_LEVEL_DOCUMENT ?
TEXT("Document/Medical ") : TEXT("Professional Edition")),
VersionInfo.MajorNumber,
VersionInfo.MinorNumber,
(L_CHAR *)VersionInfo.Date,
(L_CHAR *)VersionInfo.Time);
/* Display the message string */
MessageBox( NULL, szMessage, TEXT("API Version Information"), MB_OK );
return SUCCESS;
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.