The sample programs included with the ProtectKit3.5 are intended to illustrate how you can use Password Protection in your own Win32(64) applications. The ProtectKit3 samples call various ProtectKit3 functions to retrieve information and set protection. Using these sample programs is an excellent way to understand how password protection works and how to add it to your Win32(64) applications

The following is a brief explanation of how to set password protection and also how to unlock that protection.

Step 1:

Choose a sample program and open the sample project. If an EXE has not been built, build it. If you get an error message asking for ProtectKit3.5 files, see Step 2

Step 2:

Copy the necessary ProtectKit3 files into the same folder as the EXE. These ProtectKit3 files are: ProInfo32(64).dll and the ProFunc32(64).dll. If there is no EXE, build it.

Step 3:

Set protection into the application using the Set Password Protection Tool.

     a. Run the "Set Password Protection" tool (PrNETSetProtect.exe).
     b. Click the "Open" button.
     c. Choose the ProInfo file. This is the ProtectKit3.5 ProInfo32(64).dll that you copied to the same folder as your EXE.
         (This file can be renamed for increased security.)
     d. Select the PC Identifiers that you want to use to uniquely identify the PC running your application.
     e. Set a lockword and protection type. For example:
          Lockword: AbcdefgH
          Protection Type: Standard Protection
     f. Click the "Save" button at the top of the "Set Password Protection" tool.

Password protection has now been set into the ProInfo32(64).dll and into the compiled application EXE. Run the sample EXE and check the protection status by clicking the button named "Protection Status". The status is "Locked".

Step 4:

Unlock the protection application.

To unlock an application, you need to enter a valid password. Passwords are generated by the Password Generators. Here we will use the Password Generator EXE (Pr3PassGen.exe). To use the password generator, you must first retrieve the PcID from the PC. The sample programs retrieve the PcID within a button click event. Run the sample EXE that you protected in the above steps and click the button named "Get PcID (default)". The PcID will appear in the textbox.n the textbox.

Run the Password Generator (Pr3PassGen.exe).
Enter the lockword: AbcdefgH
Enter the PcID that you retrieved from the sample Exe.
Click the button named "Retrieve Password". The password will appear in the textbox.
Copy it from the Password Generator and paste it into the appropriate textbox in the sample EXE and click the button named "Set Password".

The sample Exe should be now be unlocked. Confirm this by clicking the button named "Protection Status".

Regarding the runtime environment:

The sample EXE file and the following files MUST be in the same folder:
     ProInfo32(64).dll
     ProFunc32(64).dll

If you are trying to run the sample on a target machine where the ProtectKit3.5 installation program was not used, you will need to be sure that the ProtectKit System Driver is installed and working on that computer. To install the ProtectKit System Driver, you need to execute the Ddscm.exe on the target machine. For details see the explanation for the ProtectKit System Driver in our online help. For details about executing the Ddscm.exe, please see Options for Ddscm.exe for Ddscm.exe.