Versions Compared

Key

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

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

Prototype

Code Block
languagecpp
LMX_STATUS LMX_GetLicenseInfo

...


(
   LMX_HANDLE LmxHandle,

...


   LMX_LICENSE_INFO **ppLicenseInfo

...


);

Parameters

LmxHandle
[in/out] LM-X handle.

...

For example, you can use the following code to cycle through multiple license paths and list all their features:

Code Block
languagecpp
LMX_STATUS LmxStat;

...

  

...


LMX_LICENSE_INFO *pLicenseInfo;

...


LMX_FEATURE_INFO *pFI;

...


if ((LmxStat = LMX_GetLicenseInfo(LmxHandle, &pLicenseInfo)) != LMX_SUCCESS) 

...


{ 
 

...

 printf("Error: %s\n", LMX_GetErrorMessageSimple(LmxStat)); 

...


/* Quit early due to error. */ 

...


} 

...


for (; pLicenseInfo != NULL; pLicenseInfo = pLicenseInfo->pNext) 

...


{ 
 

...

 for (pFI = pLicenseInfo->pFeature; pFI != NULL; pFI = pFI->pNext)

...


  { 
 

...

 }

...


}

For a more complete example of using these structures, see the sample files included in the LM-X distribution.

...