EP_EnigmaVersion Delphi

Post here any topics that related to Enigma Protector, its functionality, your misunderstanding, offers to improvements etc etc etc
Post Reply
njmube
Posts: 14
Joined: Tue Aug 04, 2015 3:54 am

EP_EnigmaVersion Delphi

Post by njmube »

Hello.

Can you give an example in Delphi of how to use the Enigma API, specifically the EP_EnigmaVersion method to obtain the version, please? I'm not sure how to do it. With version 7.2, I'm getting 1812, but I don't understand what to do with this value.

:?:
Enigma
Site Admin
Posts: 2939
Joined: Wed Aug 20, 2008 2:24 pm

Re: EP_EnigmaVersion Delphi

Post by Enigma »

Hi, this could be looking as following:

Code: Select all

var
  version : Cardinal;
begin
  version := EP_EnigmaVersion;
  WriteLn('Enigma version: ' + IntToStr(version shr 8 and $FF) + '.' + IntToStr(version and $FF));
end;
njmube
Posts: 14
Joined: Tue Aug 04, 2015 3:54 am

Re: EP_EnigmaVersion Delphi

Post by njmube »

Thank you so much
Post Reply