1

Is there any attribute, property, or method available which tells whether a given type library is an in-proc COM server or an out-of-proc COM server?

1 Answer 1

2

No there's not. The type library merely describes the interfaces, it is used by a compiler.

Whether an oop or inproc server is used is a runtime detail, determined by the dwClsContext argument for CoCreateInstance(). A COM server can support both, although that's not exactly common. You'd always know enough about the server to know what CLSCTX value to pass. If you really want to find out you can always read it back from the registry by opening the CLSID key. Look for LocalServer32 vs InprocServer32.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.