I currently have a situation where I invoke a DLL, let's call it DES. This invokes DES2 which creates an object, let's call it REF, which is my way in to the data base.
I can now instantiate another DES, but it doesn't make sense
to instantiate another DES2, so I want to be able to detect the already existing DES2 and therefore have a handle to REF. So I might have the following situation.....

Many DES instances, accessing a single DES2 (that was created by the first DES), which then uses REF to access the DB.

How can I get the handle of DES2 from my second instantiation of a DES DLL?