...
if ((LacStat = LAC_CreateLicenseRequest(szActivationKey, szHostid, szUrl, NULL, 0, NULL, NULL, szResponse)) != LAC_SUCCESS)
{
printf("Error code: %d\n", LacStat);
if (strlen(szError) > 0)
printf("Error message: %s\n", szResponse);
return 1;
}
do
{
LacStat = LAC_GetLicense(szActivationKey, szHostid, szUrl, NULL, 0, NULL, NULL, szResponse);
...