I have a DLL which invokes an application running underneath. This DLL is loaded by several other applications/processes simultaneously. So, Basically Architecture is:
My Problem is if Application(s) using DLL is crashed, I want to execute an exit sequence in my Base Application and Exit it. How can I detect that this DLL is no longer used by any application? Is there any thing like Load Count of DLL which I can keep track of? Another glitch is I may have to monitor this via a C# application but that is a further thing.