Static defined dll with external packages

Post here messages if you have any problems with working of Enigma Protector
Post Reply
Eric
Posts: 1
Joined: Thu Oct 15, 2015 11:38 pm

Static defined dll with external packages

Post by Eric »

I have static defined dll in exe.

function XXX: integer; external 'YYY.dll';

I included YYY.dll in an external package but protected exe still finds the dll with error.

If i have to dll in external package, do i have to load the dll dynamically?
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Static defined dll with external packages

Post by Enigma »

Hi Eric,

Yes, in case of static dll load and if the file exists in the external package only, protected file will still require this dll to run.

You can do one of the following:
1. Dynamically call dll through LoadLibrary
2. When you protect exe file, put your YYY.dll in Virtual Box. You can make this version of YYY.dll just empty, with exported functions but without any functionality. Then, after you protect exe, make an extenal package with the correct version of YYY.dll.
In this case, the first empty dll will help protector to remove YYY.dll reference from the import directory, but it won't be used because it will be overwritten with YYY.dll in package. Also, note, the package should be created after protection of exe. Enigma takes the latest version of YYY.dll if it exists in multiple places.
Post Reply