Loads LEADTOOLS product information into a structure.
#include "l_bitmap.h"
L_LTKRN_API L_INT L_VersionInfo(pVersionInfo, uStructSize)
Pointer to the VERSIONINFO structure.
Size of the VERSIONINFO structure pointed to by pLoadOptions. The size of this structure must be specified.
Value | Meaning |
---|---|
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.
Win32, x64, Linux.
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;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document