Once the session is connected, retrieve the server license information using the following code:
GetLicenseInfo(&myServer, &myLicense);
cout << "License information:"
<< endl;
cout << "\tUsername:\t"
<< getUserName(&myLicense)
<< endl;
cout << "\tCompany:\t"
<< getCompanyName(&myLicense)
<< endl;
cout << "\tLicense:\t"
<< getLicenseKey(&myLicense)
<< endl;