Any questions? Ask us: support@enigmaprotector.com

Adding "Licensed To:" to the app title

Post here questions regarding registration of Enigma Protector

Adding "Licensed To:" to the app title

Postby zyNoT » Fri Nov 03, 2017 5:52 am

How would I go about adding the registration name to the top of the app form?

Basically at the top of the app form I'd like it to say Licensed to User.
zyNoT
 
Posts: 2
Joined: Fri Nov 03, 2017 5:49 am

Re: Adding "Licensed To:" to the app title

Postby Enigma » Fri Nov 03, 2017 7:57 am

Hi, for this purpose you need to use Enigma API functions.

Check Enigma installation folder, EnigmaSDK subfolder, select the programming language that you use and attach sdk files to your project. Then, use the functions to extract the license name from protection.

For delphi, this function located in enigma_ide.pas, call it as following:
Code: Select all
var
  name, key : AnsiString;
begin
  if EP_RegistrationLoadKeyA(name, key) then
  begin
  end;
end;

// If unicode registration scheme is used, use the function EP_RegistrationLoadKeyW


For C# include a class Enigma_IDE from the file Enigma_IDE.cs, the usage is the same as for Delphi.
Enigma
Site Admin
 
Posts: 2215
Joined: Wed Aug 20, 2008 2:24 pm

Re: Adding "Licensed To:" to the app title

Postby zyNoT » Fri Nov 03, 2017 8:10 pm

Thank you for the quick reply. What if I was using VB.NET?
zyNoT
 
Posts: 2
Joined: Fri Nov 03, 2017 5:49 am

Re: Adding "Licensed To:" to the app title

Postby Enigma » Thu Nov 30, 2017 3:46 pm

Just in case anyone will be interesting in the same question, there are a lot of examples of usage of Enigma API functions in the Examples folder of Enigma Protector and function definitions in EnigmaSDK folder.

For VB.NET Enigma SDK is located at the folder "EnigmaSDK\Visual Basic (.NET)\"
Enigma
Site Admin
 
Posts: 2215
Joined: Wed Aug 20, 2008 2:24 pm


Return to Registration

Who is online

Users browsing this forum: No registered users and 4 guests