Description

Function will update (extend) license with new activation code data.

Availability

Protection method: REMOTE
Application status: Activated
Required features: License extension feature

Declaration

Visual C/C++
extern "C" __declspec(dllimport) int __stdcall ExtendLicense(char* ActivationCode);
Visual Basic
Declare Function ExtendLicense Lib "pcgint.dll" Alias "_ExtendLicense@4" (ByVal ActivationCode As String) As Long
Delphi
function ExtendLicense(ActivationCode: PAnsiChar): longint; stdcall; external 'pcgint.dll' name '_ExtendLicense@4';
Delphi 64bit
function ExtendLicense(ActivationCode: PAnsiChar): Int64; stdcall; external 'pcgint64.dll';

Parameters

ActivationCode - pointer to buffer with Activation code. This activation code must be based on next Site/MID code values. Function will accept both standard and extended activation codes.

Return values

If the function succeeds, PCGI_STATUS_OK is returned and license is successfully updated with new activation data.

If the function fails, return value is on of the following error codes:

PCGI_ERROR_APPLICATION_IS_LOCKED
PCGI_ERROR_LICENSE_EXTENSION_ERROR
PCGI_ERROR_INVALID_ACTIVATION_CODE
PCGI_CRITICAL_ERROR

Full list of return codes is available here.

Notes

Be sure to call GetIntefaceData function after calling this function in order to obtain current license status.