开发者

Can I extract the CLSID of a type from a typelib on the command line?

I have an ActiveX control implemented as a DLL; this DLL has the type library embedded as a resource. I know that the type library contains a coclass with a special name (say "FooPlugin.BarClass").

How can I extract the CLSID of this class on the command line if I have just the DLL at the name of the clas开发者_StackOverflow中文版s whose CLSID I would like to extract?

I saw the similiar question How to Extract TypeLib from a COM exe on Command Line which made me start tinkering with the tlbimp.exe and tlbexp.exe tools - but without success so far. Maybe I need a third tool to get a textual representation of the binary type library files or something?


  1. You can develop an automation tool which starts from LoadTypeLib and gets you what you need
  2. You can register the DLL (or expect it to be registered) and walk through registry HKCR for the information you want, such as starting with identifying type library identifier for your file, enumerating classes referencing type library, choosing those of your interest
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜