Skip to content

Demo with /delayload linking with custom dll search path

License

Notifications You must be signed in to change notification settings

stsoe/delayload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of delayload with Visual Studio

  • mep is is the application
  • mep links with vart
  • vart links with xrt
  • vart delayloads xrt
  • vart calls AddDllDirectory during static global initialization
  • xrt is loaded on first calls to xrt::run from vart
  • xrt prints the path from where it was loaded

Build and run

% mkdir build
% cd build

% cmake ..

% cmake --build . --verbose --config Debug --target install

% cd bin

% mep.exe
vart.cpp:dllpath::dllpath()
vart::vart()
vart::run()
X::X()
C:\Users\stsoe\tmp\MEP2\build\bin\xrt.dll
xrt::xrt()
xrt::run()
xrt::~xrt()
vart::~vart()

% mv xrt.dll c:\users\stsoe\tmp\dllrepo

% mep.exe
vart.cpp:dllpath::dllpath()
vart::vart()
vart::run()
X::X()
c:\users\stsoe\tmp\dllrepo\xrt.dll
xrt::xrt()
xrt::run()
xrt::~xrt()
vart::~vart()

About

Demo with /delayload linking with custom dll search path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published