Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


The information on this page refers to LM-X v4.9.1 and newer, which added the szHalPath for the LMX_LICENSE_INFO field. If you are using an older version of LM-X, refer to documentation for earlier versions. 

The LMX_GetLicenseInfo function retrieves license information from one or more license servers or from a local path.

...

To enable cycling through objects in a list, each structure contains a pointer named pNext, which identifies the next record. The last record is identified by pNext being NULL.


LMX_LICENSE_INFO contains the following fields.


LMX_LICENSE_INFO field

Description

char szPath[LMX_MAX_LONG_STRING_LENGTH+1]

The path and name of the license file (for local licenses) or license server host name (for network licenses).

LMX_STATUS LmxStatThe status of the license path. If this is not LMX_SUCCESS, then all remaining information in LMX_LICENSE_INFO or related structures may be invalid.
char szHalPath[3][LMX_MAX_LONG_STRING_LENGTH+1]

Paths for the 3 HAL servers, in the form of "port@host", where the first element is the master, the second is the first slave, and the third is the second slave.

int nPort

The port number of the license server.

char szVendorName[LMX_MAX_SHORT_STRING_LENGTH+1]

The vendor name.

char szVersion[LMX_MAX_SHORT_STRING_LENGTH+1]

The version of the license server.

int nServerUptimeSeconds

The uptime of the license server.

LMX_FEATURE_INFO *pFeature

Pointers to the features that are present on the license server.

LMX_CLIENT_USER *pUser

Pointers to the users that are present on the license server.

Example

You can use the following code to extract information about available licenses, their paths, ports, types and list all their features.

...