>>>I have a class that I compile into a DLL. From inside the class, I want a method that will return the verion number of the DLL that was set at build time. Getting the version number is easy using AGETFILEVERSION(). But, how do I get the name of the DLL?
>>
>>If you have the ProgID, you can spin through HKEY_CLASSES_ROOT\CLSID; the InProcServer32 registry entry's Default value, at the same level as the ProgID registry entry that matches your server, points to the .DLL that provides the service. If you find a LocalServer32 entry, that's a local, out-of-process server, and you should find the command line used to launch the associated automation server.
>
>I want a generic way. I won't know the prog Id.
If you don't know the ProgID, and don't know the name of the .DLL or .EXE used to implement the server, what piece of information will you have that will allow you to identify the server?