LicensePoint.Net Latest dll library class documentations.
Before setting up LP on your projects, please first create your program and download the latest dll files which can be found here: https://licensepoint.net/download/Class_Library.zipand add reference both dll on your project.
You will need to have your program token, the latest LP dll and variable key at hand
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Api.LpiAuth.Secret = "Your Application Secret Key"; //Sets your program secret throughout the program
Api.LpiAuth.Initialize("Application Version"); //Carries out auto-update and grabs program variables
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
On the form that shows after login add this:
public Form2()
{
InitializeComponent();
if (!ProgramVariables.Freemode)
{
Security.ChallengeCheck(); //Checks if the user has logged in, passed the initialize method and hasn't triggered any security alarms
}
}