Cannot generate HardwareId in 64-bit

x64 version issues
Post Reply
dajur
Posts: 3
Joined: Fri May 23, 2014 6:02 pm

Cannot generate HardwareId in 64-bit

Post by dajur » Fri May 23, 2014 9:18 pm

Dear Enigma,

I am evaluating Enigma protector for 64-bit which looks very promising.
However I cannot generate a HardwareId with EP_RegHardwareID.

I took the example application as found in the forum:
http://forum.enigmaprotector.com/viewto ... 74&p=14390

I compiled the sample application with Delphi XE3 for 32-bit and after protecting the executable with the 32-bit protector I can see the HardwareId as expected. But compiling the same code for 64-bit and using the 64-bit enigma_ide.dll (I had to rename the enigma_ide64.dll) after protection with the 64-bit protector the HardwareID remains empty.

Is this a bug or am I missing something?

I can provide you the 64-bit sample application should you need it.

Thanks for looking into this,

J.

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

Re: Cannot generate HardwareId in 64-bit

Post by Enigma » Mon May 26, 2014 7:37 am

Hi dajur, yes, please provide us with the compiled sample, we will check it out asap and let you know the core of the problem.

dajur
Posts: 3
Joined: Fri May 23, 2014 6:02 pm

Re: Cannot generate HardwareId in 64-bit

Post by dajur » Mon May 26, 2014 8:26 am

The examples both working 32-bit and failing 64-bit have been forwarded to support.

Thanks for looking in to this,

J.

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

Re: Cannot generate HardwareId in 64-bit

Post by Enigma » Mon May 26, 2014 8:49 am

OK, I found the core of the problem. You had to rename the dll in the enigma_ide.pas, not the dll file itself.

Simply, just take enigma_ide64.pas from the folder "EnigmaSDK\FPCx64\" and use it for x64 project.
So your "uses" block will look the following:

Code: Select all

Uses {$IFDEF WIN64}enigma_ide64{$ELSE}enigma_ide{$ENDIF};
enigma_ide64.pas should be used for x64 project
enigma_ide.pas should be used for x86 project

dajur
Posts: 3
Joined: Fri May 23, 2014 6:02 pm

Re: Cannot generate HardwareId in 64-bit

Post by dajur » Mon May 26, 2014 8:52 am

Great!

Thanks for the solution and your quick reply,

J.

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

Re: Cannot generate HardwareId in 64-bit

Post by Enigma » Mon May 26, 2014 8:54 am

You are welcome, let me know if you will have other questions!

Post Reply