Page 1 of 1

EP_EnigmaVersion Delphi

Posted: Wed Mar 01, 2023 2:43 am
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.

:?:

Re: EP_EnigmaVersion Delphi

Posted: Wed Mar 01, 2023 3:51 pm
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;

Re: EP_EnigmaVersion Delphi

Posted: Wed Mar 01, 2023 4:14 pm
by njmube
Thank you so much