Playing with DLLs

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fernandocarvalho
Level 4
Level 4
Posts: 102
Joined: Sun Oct 11, 2009 7:03 am

Playing with DLLs

Post by fernandocarvalho »

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.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Playing with DLLs

Post by vitamin »

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.
Locked