Jakub Šturc
Jakub Šturc

Reputation: 35767

How to determine Threading Model of given COM library?

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?

Upvotes: 3

Views: 850

Answers (2)

Kyle Alons
Kyle Alons

Reputation: 7135

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

Upvotes: 7

Georg Fritzsche
Georg Fritzsche

Reputation: 98984

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

Upvotes: 3

Related Questions