How to check if a DLL file is registered?

后端 未结 7 1798
一生所求
一生所求 2020-12-01 08:07

How do I find whether a DLL file written in C# is registered or not programmatically?

I already tried this code, but it doesn\'t come off.

If I register a DL

相关标签:
7条回答
  • 2020-12-01 08:32

    You need to find out the GUID of a COM object defined in the DLL. Then look at this registry key:

    HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\InprocServer32
    

    Replace the x's with the GUID.

    It should have a default value that contains the full path to the DLL.

    0 讨论(0)
提交回复
热议问题