Description
Function will invalidate existing serial number and reset license. In case of remote protection new activation code will be required on next run.
Availability
Protection method: | REMOTE, PLAIN, USB |
Application status: | All |
Required features: | Serial numbers feature |
Declaration
Visual C/C++ |
extern "C" __declspec(dllimport) int __stdcall InvalidateSerialNumber(); |
Visual Basic |
Declare Function InvalidateSerialNumber Lib "pcgint.dll" Alias "_InvalidateSerialNumber@0" () As Long |
Delphi |
function InvalidateSerialNumber():longint;stdcall; external 'pcgint.dll' name '_InvalidateSerialNumber@0'; |
Delphi 64bit |
function InvalidateSerialNumber(): Int64; stdcall; external 'pcgint64.dll'; |
Parameters
None
Return values
If the function succeeds, PCGI_STATUS_OK is returned, serial number is invalidated and license is reset
If the function fails, return value is on of the following error codes:
PCGI_ERROR_SERIAL_NUMBERS_DISABLED
PCGI_ERROR_SERIAL_NUMBER_NOT_SET
PCGI_CRITICAL_ERROR
Full list of return codes is available here.
Notes
Once serial number is invalidated, protected application should exit or restart.