Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 655
Jakub Šturc Avatar asked Jan 18 '26 01:01

Jakub Šturc


2 Answers

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
like image 123
Kyle Alons Avatar answered Jan 20 '26 13:01

Kyle Alons


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

like image 31
Georg Fritzsche Avatar answered Jan 20 '26 15:01

Georg Fritzsche



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!