Log in

View Full Version : implicit link with DLL's exported function by ordinal


dion
February 21st, 2009, 10:47
hi,

i was trying to built a fake DLL to log export functions call from the real DLL.
these functions are exported by ordinals. i know the way to explicitly link them, aka with loadlibrary and getprocaddress. but i don't want that way, because i see in another DLL, they have import table which import from this DLL. so, i thought there must be a way to produce that import programmatically (using msvc 6). i've been googling around and can't find any sample code on this. is there anyone know?

thanks

evlncrn8
February 21st, 2009, 15:14
think you're talking about forwarded exports, like ws2help.dll -> ws2_32.dll and so on.. yup?

if so, http://msdn.microsoft.com/en-us/magazine/cc301808.aspx might help

dion
February 22nd, 2009, 11:39
thanks, yes, that's what i need.