This function retrieves the lockword.

[C++Builder/Visual C++] BOOL PK3GetLockword(LPSTR lpszLockword);
[Delphi] function PK3GetLockword(lpszLockword: PAnsiChar): Longint;
[Visual Basic] Function PK3GetLockword(ByVal lpszLockword As String) As Long

Parameters

Name Explanation
lpszLockword The retrieved lockword (from 8 to 64 digits)

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.)

Return Value

Returns the number of digits of the retrieved lpszLockword if successful, otherwise returns False (0).

Explanation

The PK3GetLockword function retrieves the lockword that was set by the "Set Protection" tool. The function is disabled if the PK3Initialize function has not been executed.