This function retrieves how many "allowable uses" are remaining. (i.e. how many more times the application can be used)

[C++Builder/Visual C++] long PK3QueryRemainCount(void);
[Delphi] function PK3QueryRemainCount: Longint;
[Visual Basic] Function PK3QueryRemainCount() As Long

Parameters

None

Return Value

Value Explanation
The number of allowable uses remaining This return value is possible when the PK3QueryProtect function returns 0 (which means the application is still allowed to run) and the remaining allowable uses is non-zero.
-1 This return value is possible when the PK3QueryProtect function returns non-zero (which means the application is no longer allowed to run); or when an unrestricted password has been generated and the application has been unlocked without any other restrictions.

Explanation

The PK3QueryRemainCount function retrieves how many "allowable uses" are remaining. (i.e. how many more times the application can be used). This function will only return the "remaining allowable uses" when that type of protection has been applied. If other types of protection are used or if the application software has been unlocked without other restrictions, the PK3QueryRemainCount function will return -1.

The PK3QueryRemainCount function is disabled if the PK3Initialize function has not been executed.