This function closes the ProtectKit and updates the protection information.
Parameters
None
Return Value
Returns True (non-zero) if successful, otherwise returns False (0).
Explanation
The PK3Finish function closes the ProtectKit and updates the protection information.
For example: You have set "Run Count" protection on an application allowing that application to run only a specific number of times. The application is started and when it is closed, the PK3Finish function executes and the run count is reduced by 1. If the PK3Finish command does not execute when the application is closed, the protection information is not updated and the applications run count does not change.
In this way, if the PK3Finish function does not execute, the protect information is not updated and that is why you must be sure to execute the PK3Finish command when the application closes.
Prior to executing the PK3Finish command, the PK3Initialize command must have been executed. If it has not, the PK3Finish command is ineffective.