This function initializes network protection and enables the network protection functions.
[C++Builder/Visual C++] BOOL
PK3NETInitialize(PTR_PROTECTKIT3NET pNet, LPCSTR lpszAppName, LPSTR
lpszNetword, LPLONG lpNetwordLen);
[Delphi] function
PK3NETInitialize(var pNet: PROTECTKIT3NET; lpszAppName,
lpszNetword: PAnsiChar; var lpNetwordLen: Longint): Longint;
[Visual Basic] Function
PK3NETInitialize(pNet As PROTECTKIT3NET, ByVal lpszAppName As
String, ByVal lpszNetword As String, lpNetwordLen As Long) As
Long
Parameters
Name | Explanation |
pNet | The parameter holding the retrieved message information in a user defined structure |
lpszAppName | The name of the application protected by the ProtectKit |
lpszNetword | The retrieved network 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 Netword specified in the "Set Protection" tool, network protection.) |
lpLockwordLen | The length of the retrieved Netword in digits |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3NETInitialize function initializes network protection and enables the network protection functions.
For more details about the PROTECTKIT3NET_MSG, please refer to the PROTECTKIT3NET_MSG member variable explanation of the PkitNet32.dll/PkitNet64.dll.