I've got a DLL which is used between 7 applications which provides the main shared functionality between these applications (eg setting user names, passwords etc), however I have a bug somewhere in the code which is causing certain data to get reset.

I would like to be able from the DLL to find out which application has called it and if anyone can supply me the code to do this it would be much appreciated

Thanks in advance

Andy