How to determine Threading Model of given COM libr

2019-04-10 20:54发布

I have a COM library I should use in my ASP.NET MVC application. However I am unsure about its thread apartment model. How can I determine it?

2条回答
混吃等死
2楼-- · 2019-04-10 21:28

The OLE/COM Object Viewer also shows the threading model for components.

查看更多
神经病院院长
3楼-- · 2019-04-10 21:48

Determine the component's CLSID from the registry using this key:

HKEY_CLASSES_ROOT\{component's progid}\CLSID

Then lookup the ThreadingModel using this registry key

HKEY_CLASSES_ROOT\CLSID\{component's clsid}\InprocServer32\ThreadingModel
查看更多
登录 后发表回答