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

2011-11-18 Thread Ulrich Eckhardt
Am 18.11.2011 12:49, schrieb Pekka Kytölä: What I'd like to do is that after fetching those SDK function pointers I'd like to fire up .py/.pyc that snoops for possible plugins written in python and registers those plugins and callbacks and let them react to events. Obviously this python code need

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 (dll) to a host app and the SDK's functi

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

2011-11-18 Thread Ulrich Eckhardt
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 (dll) to a host app and the SDK's function pointers are assigned once the dll is loaded in the host