Any questions? Ask us: support@enigmaprotector.com

Cannot generate HardwareId in 64-bit

x64 version issues

Cannot generate HardwareId in 64-bit

Postby 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:
viewtopic.php?f=26&t=8074&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.
dajur
 
Posts: 3
Joined: Fri May 23, 2014 6:02 pm

Re: Cannot generate HardwareId in 64-bit

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

Re: Cannot generate HardwareId in 64-bit

Postby 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.
dajur
 
Posts: 3
Joined: Fri May 23, 2014 6:02 pm

Re: Cannot generate HardwareId in 64-bit

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

Re: Cannot generate HardwareId in 64-bit

Postby dajur » Mon May 26, 2014 8:52 am

Great!

Thanks for the solution and your quick reply,

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

Re: Cannot generate HardwareId in 64-bit

Postby Enigma » Mon May 26, 2014 8:54 am

You are welcome, let me know if you will have other questions!
Enigma
Site Admin
 
Posts: 2161
Joined: Wed Aug 20, 2008 2:24 pm


Return to Enigma Protector x64

Who is online

Users browsing this forum: No registered users and 3 guests

cron