[ros-dev] delay loading dlls

Timo Kreuzer timo.kreuzer at web.de
Thu Jan 17 03:39:24 CET 2008


Hi,

I have recently played around a little with delay loading stuff. I have 
written a __delayLoadHelper2 and the neccessary asm stubs to do delay 
loading of a dll. It works and is implemented as documented on msdn / 
Under The Hood.
The stubs are done by hand, but it shouldn't be too hard to write a tool 
to autocreate them the same way as dlltool does it.
There will be no entry in the pe header, but that is optional anyway.

Are there any plans on how to handle that?
The best way would probably be, if dlltool could handle that, but ...
So I thought about a dlitool.exe that creates the stubs.

Any ideas?
For the ones interested: I have attached the sources. They allow to 
delay import StrToIntA from shlwapi.dll

Timo

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: delayimp.c
Url: http://www.reactos.org/pipermail/ros-dev/attachments/20080117/db097e96/attachment.c 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: delayimp.h
Url: http://www.reactos.org/pipermail/ros-dev/attachments/20080117/db097e96/attachment.h 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dlibah.s
Url: http://www.reactos.org/pipermail/ros-dev/attachments/20080117/db097e96/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dlibas00000.s
Url: http://www.reactos.org/pipermail/ros-dev/attachments/20080117/db097e96/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dlibat.s
Url: http://www.reactos.org/pipermail/ros-dev/attachments/20080117/db097e96/attachment-0002.pl 


More information about the Ros-dev mailing list