Tweak DLL module name during LoadLibrary

I want to load at runtime a third-party binary plug-in (P.dll) in my application (A.exe). This plugin was created for another application (B.exe).

The plugin has an implicit dll import into the B.exe module, for example:

  • Module Name: B.exe
  • func1
  • func2
  • Func3

I exported the functions func1, func2 and func3 from A.exe, but I can not load the DLL with LoadLibrary, because there is no module named "B.exe".

Is there anything better than renaming my application "B.exe" or fixing P.dll PE?

Thank,

Kirill

+5
source share
1 answer

B.exe( DLL) B.exe A.exe.

, . " " .

+1

All Articles