Re: Passing DLL handle as an argument (in Windows)

2011-11-18 Thread Pekka Kytölä
Hmm. Let me describe what is going a bit more carefully: What I build is a dll file that has exported function that gets called when the host application/dll loads my dll. In this function the function pointers to the actual SDK functions are fetched. After this my dll's registers some plugins tha

Re: Passing DLL handle as an argument (in Windows)

2011-11-18 Thread Pekka Kytölä
On Nov 18, 10:27 am, Ulrich Eckhardt wrote: > Am 18.11.2011 08:51, schrieb Pekka Kytölä: > > > Is it possible to pass my own dll's (already loaded) handle as an > > argument to load/attach to the very same instance of dll? Thing is > > that I've done plugin

Passing DLL handle as an argument (in Windows)

2011-11-17 Thread Pekka Kytölä
Is it possible to pass my own dll's (already loaded) handle as an argument to load/attach to the very same instance of dll? Thing is that I've done plugin (dll) to a host app and the SDK's function pointers are assigned once the dll is loaded in the host process. I'd like to fire up python code wit