This function initializes the ProtectKit3.

[C++Builder/Visual C++] long PK3Initialize(LPCSTR lpszAppName, LPCSTR lpszProtectResDll);
[Delphi] function PK3Initialize(lpszAppName, lpszProtectResDll: PAnsiChar): Longint;
[Visual Basic] Function PK3Initialize(ByVal lpszAppName As String, ByVal lpszProtectResDll As String) As Long

Parameters

Name Explanation
lpszAppName The name of the application that is to be protected.
lpszProtectResDll The name of the file where the protection information is stored.

Return Value

Value Explanation
0 The ProtectKit is running properly.
1 The ProtectKit is not running. (DdScm.exe has not been executed)
2 Unable to load the protection file.
3 The application's lockword is not set or is not correct.
(Please use the ""Set Protection" tool to set the lockword.
4 The execution environment is not on the local hard disk.
5 The protection file, where the protection information is stored, is incorrect.

Explanation

The PK3Initialize function initializes the ProtectKit. Once the ProtectKit has been initialized and is running properly, the protection information can be retrieved.