Getting CLSID for a DLL file?

前端 未结 2 1410
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 06:07

I want to create a small app to add and remove user defined context menu entries from the registry. To make this, somehow I need to get the CLSID of an arbitrary DLL so I can ba

2条回答
  •  你的背包
    2021-02-14 06:32

    You could try to use RegOverridePredefKey() to intercept what regsvr32 does to the registry - call RegOverridePredefKey(), then reproduce what regsvr32 does - LoadLibrary() the COM server, call DllRegisterServer() - then inspect the changes done. With RegOverridePredefKey() you will isolate the changes and not let them become persistent.

提交回复
热议问题