For passwords that have an expiration date, this function queries the next password.

[C++Builder/Visual C++] BOOL PK3NextQueryPassword(LPSTR lpszPassword, LPLONG lpPasswordLen);
[Delphi] function PK3NextQueryPassword(lpszPassword: PAnsiChar; var lpPasswordLen: Longint): LongBool;
[Visual Basic] Function PK3NextQueryPassword(ByVal lpszPassword As String, lpPasswordLen As Long) As Long

Parameters

Name Explanation
lpszPassword The password set by PK3NextSetPassword

In C++Builder, Visual C++, and Delphi. this is a string terminating with Null. In Visual Basic, this is a string of specified size. (The lockword specified in the "Set Protection" tool.)
lpPasswordLen The number of digits in the retrieved password (lpszPassword)

Return Value

Returns the True (nonzero) if successful, otherwise returns False (0).

Explanation

For passwords that have an expiration date, the PK3NextQueryPassword function queries the next password.