Adding "Licensed To:" to the app title

Post here questions regarding registration of Enigma Protector
Post Reply
zyNoT
Posts: 4
Joined: Fri Nov 03, 2017 5:49 am

Adding "Licensed To:" to the app title

Post by zyNoT »

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.
Enigma
Site Admin
Posts: 2938
Joined: Wed Aug 20, 2008 2:24 pm

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

Post by Enigma »

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.
zyNoT
Posts: 4
Joined: Fri Nov 03, 2017 5:49 am

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

Post by zyNoT »

Thank you for the quick reply. What if I was using VB.NET?
Enigma
Site Admin
Posts: 2938
Joined: Wed Aug 20, 2008 2:24 pm

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

Post by Enigma »

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)\"
Post Reply