How to retrieve activation information from the License Server
To retrieve license activation information for a specific Activation Key from the License Server, there are two different use cases to consider:
Single Activation Key
Multiple Activations Key
License Information for single activation license keys is stored in the QLM main License Keys table and can be readily retrieved by calling the GetLicenseInfo method.
For multiple activation license keys, license information is stored in a separate table called ActivationLog. You must therefore retrieve the information from this table by calling GetActivationLog and then retrieve the record from this table that corresponds to the client computer.
The code sample below illustrates how to retrieve the IP Address for a given activation. The lv
string ipAddress;// lv is an instance of the LicenseValidator class // the code below assumes that you have already called lv.ValidateLicenseAtStartupGetLicenseInformation (Environment.MachineName,out ipAddress);
As an alternative, you can also retrieve license information by calling the GetLicenseFile method which returns a digitally signed XML file contained information about the license