LM_INFO

Return license information about the system

WSupported on Windows
USupported on Unix

 

NSupported in Synergy .NET
xcall lm_info(lm_stat, lm_site)

lm_stat

Returned with the License Manager site status. This will be 0 (success) or one of the codes listed in Licensing Toolkit error messages. (n)

lm_site

Returned with the site information record: (a)

             ,a6   ;Blanks
lm_licensee  ,a50  ;Licensee name entered during registration
lm_regstr    ,a31  ;Registration string
lm_regdat    ,d8   ;Registration date (YYYYMMDD)
lm_timout    ,d8   ;Pre-install time-out date (YYYYMMDD)

LM_INFO returns license information about the system on which License Manager is running. The default pre-install time-out date is 14 days after the registration date.

The status value returned in lm_stat is for checking success or providing an application-related license error message. This value has no effect on your application; you must write code to handle the returned status.

If lm_regstr returns “New-----Reg” rather than the actual registration string, it means that the size of the lm_site argument is too small to hold the longer REV11 registration string. In version 11, the size of the lm_regstr field increased from a12 to a31.

You can access system error codes with %SYSERR, which may assist in troubleshooting.

xcall lm_info(myStat, mySiteInfo)

See also lm_auth.dbl in Licensing_TK_Examples, available from Synergy CodeExchange in the Synergex Resource Center.