Getting CLSID for a DLL file?

前端 未结 2 1402
伪装坚强ぢ
伪装坚强ぢ 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:19

    You could consider calling LoadTypeLibEx on the DLL specifying REGKIND_NONE and then examine get the TypeLibInfo information available via the ITypeLib interface passed back to you.

    There's some information about this sort of thing on MSDN. It's an old VB6-focused link but has useful information about inspecting COM components in this way.

提交回复
热议问题