VLScgGenerateLicense
Syntax
int VLScgGenerateLicense (VLScg_HANDLE iHandle, codeT *codeP, char **result);
Argument | Description |
iHandle |
The instance handle for this library. |
codeP |
The pointer to the codeT struct. |
result |
Address of pointer pointing to generated license string. |
Description
This function generates the license string for the given codeT struct. It should be called after all the VLScgSet functions are called. Memory allocation and deallocation for codeT are the responsibilities of the caller of function.
Memory allocation for the license string is handled by this function. Its address is to be passed by the caller of this function in the third argument.
Returns
The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code |
Description |
VLScg_INVALID_VENDOR_CODE |
If vendor identification is invalid. |
VLScg_VENDOR_ENCRYPTION_FAIL |
If vendor-customized encryption fails. |
VLScg_LICMETER_NOT_ SUPPORTED |
Your Sentinel RMS License Meter is not supported. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .