Can I add a function to a allready existing DLL that is called when the DLL is loaded? If so, how? Thanks, August.
Can I add a function to a allready existing DLL that is called when the DLL is loaded? If so, how? Thanks, August.
well, you can hook the LoadLibrary windows API for the application that loads the DLL. Then you can insert your own code before calling the existing implementation of LoadLibrary when the passed in DLL is the one you are checking for.