I\'m trying to do exactly what LD_PRELOAD does, i.e. preload a shared library or DLL files on Windows to a given program to override certain functions.
Is there a
AppInit_DLLs.
http://support.microsoft.com/kb/197571
But see also:
AppInit_DLLs should be renamed Deadlock_Or_Crash_Randomly_DLLs
https://blogs.msdn.microsoft.com/oldnewthing/20071213-00/?p=24183/
You may also want to look into "DLL Injection". Four approaches (including AppInint_DLLs) are described here:
http://en.wikipedia.org/wiki/DLL_Injection