I have a shared unit that maintains my own global CodeSite instance. The first time it is called, CodeSiteManager is configured and my global instance is created. I'm currently able to do CodeSite logging very early in the application/service startup process or very late in the shutdown process. (And very early in the DLL load process, while LoadLdrDLL is still loading the DLL.) Each CodeSite log file is named using a combination of the EXE name and the timestamp of log creation. The side effect is that I'm getting a separate log file each time a DLL is loaded.
Is there a way that the DLL project can detect whether the EXE contains a CodeSiteManager instance and, if so, access the properties of that instance? We're not using packages, so I can't use something like FindComponent.

I know I could have a mechanism where I pass the EXE's CodeSiteManager to the DLL once it is loaded. However, this has a few disadvantages. For one, I might have CodeSite calls inside initialization sections, and those would execute before the DLL's CodeSiteManager could be configured.
Thanks!