I wish to implement my own DLL loader and play with it's exported functions. Do someone have any tips or documentation about how to load a DLL exported function, get a pointer to the function and call it inside the code? It is obvious that I'm not going to replicate a full Windows compliant DLL loader like we have in wine, but I want only to understand the concepts.
fernandocarvalho wrote:> Do someone have any tips or documentation about how to load a DLL exported function, get a pointer to the function and call it inside the code?Google is your friend here. It's been documented in lots of places. You can read Wine source as a documentation too fernandocarvalho wrote:> It is obvious that I'm not going to replicate a full Windows compliant DLL loader like we have in wine, but I want only to understand the concepts.Look at mplayer for stripped down version of loader. If you need to do anything more then it does - use Wine.