Is it possible to use a specific instance of a DLL using ctypes? Basically my application is as follows: We have a C DLL accessed by a C# DLL and then a C# WPF front end. I wrote a separate wrapper using ctypes to access the C DLL directly and bypass the C# all together.
We currently use an internal IronPython window in our program to allow users to script things in Python, and that connects to the middle C# layer and through that to the C dll. Because of the limitations of IronPython, I would like to see if it's possible to allow users to write Python code that can, using my library, directly access the C dll, but the same instance of it as the C# is using so they can be synced. Is this even remotely possible?