问题描述
大家好!
除了从特定位置运行的进程外,如何以编程方式阻止所有进程与COM服务通信?
我现在正在寻找的可能地点如下:
在DllGetClassObject实现中
在IClassFactory :: CreateInstance实现中
问题在于上述两种方法似乎对COM客户端进程没有任何了解....因此,我需要您的帮助.
所以我想我真正想知道的是:
1- COM实现的哪些部分了解调用者进程
2-这些部分中的哪一个是拒绝"呼叫者请求的最佳位置.
p.s.如果您现在还没有猜到,我对COM一无所知:sigh:
Hi all!
How would one go about *programatically* blocking all processes from communicating with a COM service except processes that are running from a specific location?
Possible places that I''m looking into now are the following:
In the DllGetClassObject implementation
In the IClassFactory::CreateInstance implementation
The problem is that the two methods above don''t seem to have any idea about the COM client process.... so I need your help on this one.
So I guess what I really want to know is:
1- Which parts of the COM implementation know about the caller process
2- Which one of these parts is the best place to "deny" the caller request.
p.s. if you haven''t guessed it by now, I know nothing about COM :sigh:
推荐答案
这篇关于根据流程路径过滤呼叫者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!