2008/10/31 Dan Kegel dank@kegel.com:
How would we do this on Windows? (We need the winetest results to be reliable, too.) That was the main reason I didn't go for LD_PRELOAD... I guess we do some sort of DLL injection, but I haven't done it personally before.
- Dan
You could patch the IAT, but that's quite a bit less nice than LD_PRELOAD, of course.