How to determine Threading Model of given COM library?

柔情痞子 提交于 2019-12-21 19:56:05

问题


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?


回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/2722867/how-to-determine-threading-model-of-given-com-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!