如何确定进程外COM服务器支持的线程模型?
Question:
How to find the threading models supported by a predefined out-of-process (EXE-based) Server:
Using oleview?
Or any other valid methods?
Note:
- Attempting to connect to the above described server to receive event notifications
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
恐怕这个问题是错误的。
线程模型(STA、MTA 等)是一种不可避免的邪恶,仅适用于进程内 COM 对象,其中对象和客户端需要在同一进程中共存,并且以某种方式它们必须防止踩到彼此的脚趾(一个有趣且冗长的主题) )。
进程外 (EXE) COM 服务器存在于自己的进程中,并按照自己认为合适的方式管理自己的线程。 COM 不知道——也不关心。
因此,不存在与 EXE 关联的任何“线程模型”(在 COM 意义上)。
听起来您有一个特定的问题:如果您发布更多详细信息,我/某人/我们可能会提供帮助。
I'm afraid the question is wrong.
Threading models (STA, MTA, etc) are a necessary evil that apply only to in-process COM objects, where objects and clients need to coexist in the same process and somehow they must prevent stepping on each other's toes (a fun and lengthy topic).
Out-of-process (EXE) COM servers live in their own process and manage their own threading as they see fit. COM doesn't know -- and doesn't care.
So there isn't any "threading model" (in a COM sense) associated with an EXE.
It sounds like you have a specific problem: If you post more details, I/someone/we might be able to help.
类的绝对最小注册表项数量为:
注意:
The absolute minimum amount of registry entries for a class is:
Note: