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?
Is there any attribute, property, or method available which tells whether a given type
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.