Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有多个 .exe 文件,它们通过函数为某个 IID 注册 COM IClassFactories并在参数中CoRegisterClassObject指定REGCLS_MULTI_SEPARATE标志。flags
CoRegisterClassObject
REGCLS_MULTI_SEPARATE
flags
有没有办法让客户端尝试获取公开接口的实例来指定我希望它从哪个进程获取该实例?到目前为止,在我的实验中,当我调用CoCreateInstance它时,它给了我一个指向来自运行时间最长的 LocalServer 的实例的指针,该实例暴露了所请求的接口。
CoCreateInstance