Skip to content

Latest commit

 

History

History
15 lines (7 loc) · 960 Bytes

README.md

File metadata and controls

15 lines (7 loc) · 960 Bytes

dllpatch.exe

License Build status

Created for my blog post The Search for Auto-Loaded DLLs and Windows rpath

Changes the name of a DLL linked with a binary. Used as a poor man's substitute for rpath on Windows.

For example you can make demo.exe search for foo.dll in a relative path (subdirectory\foo.dll) or an absolute one (c:\dir\foo.dll).

The implementation is pretty simple (for now?). If only replaces DLL names if the new one can fit. To make it work with a long new name, you have to provide a long old name, renaming foo.dll to something-extra-extra-long-because-i-need-the-space-for-a-long-path.dll.

For an example demo see the enclosed run-demo.bat.