L_VersionInfo

#include "l_bitmap.h"

L_INT EXT_FUNCTION 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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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

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

Windows 95 / 98 / Me, Windows 2000 / XP.

See Also

Functions:

L_IsSupportLocked, L_UnlockSupport

Example

For complete sample code, refer to the INFO example.

/* This example gets product information and displays it in a message box */
VERSIONINFO VersionInfo;         /* LEAD Version Information structure. */
L_TCHAR szMessage[ 1024 ];         /* Buffer to hold information for display. */
/* Get the version information */
VersionInfo.uStructSize = sizeof(VERSIONINFO);
L_VersionInfo
(&VersionInfo, sizeof(VERSIONINFO));
/* 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 L_FAR *)VersionInfo.Product,
               (L_CHAR L_FAR *)(VersionInfo.Level == TOOLKIT_LEVEL_DOCUMENT ?
                                     TEXT("Document/Medical ") :
                                     TEXT("Professional Edition")),
               VersionInfo.MajorNumber,
               VersionInfo.MinorNumber,
               (L_CHAR L_FAR *)VersionInfo.Date,
                 (L_CHAR L_FAR *)VersionInfo.Time);
/* Display the message string */
MessageBox( NULL, szMessage, TEXT("API Version Information"), MB_OK );