You can use Licensor's Professional Chameleon
DLL to place a Hardware lock anywhere in your application...
From the product's Support Page you can purchase a Key that unlocks this lock on
the end user's machine...
The examples that follow will make its usage clear even for the most novice programmer
among you...
|
|
1. Windows Visual Basic .NET Application |
Hardware lock example
Create a New Windows Application Project and place the following lines of code in
the file Form1.vb :
Prerequisites:
1. Add a Reference to the LPCver.1.0.0.0.dll
in your Project's References Section. It is not obligatory but
you can put a statement: ' Imports
LPC' in the top line...
2. Create an enumeration of the
Hardware devices with a value of: ' True'
for the devices that you want to include in the Hardware check procedure.
3. Create a Public Sub New with a Try...Catch block of code. Try
to create a new object of the type LPC.Compiler with the following
arguments:
4.' True'
or ' False', for the appearence or not of
the graphic bar:
during the license check procedure.
5. The position of the Top left
corner of the graphic bar as a System.Drawing.Point type
6. Your Company's e-mail
address
This is all that is needed! You may now Run your LPC locked application...
PS: Always obfuscate your .NET code with the best
obfuscator you may find...
|
|
2. Windows C# .NET Application |
Hardware lock example
The same example in C# :

|