根据流程路径过滤呼叫者 [英] Filter callers based on process path

查看:67
本文介绍了根据流程路径过滤呼叫者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

除了从特定位置运行的进程外,如何以编程方式阻止所有进程与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:

推荐答案

您可能会改变一点看法,并把需要其客户端提供运行时许可证的服务.这样,只有允许的客户端才能访问它.
:)
You may change a bit the point of view and make the COM service requiring a runtime licence from its clients. This way only allowed clients will access it.
:)


这篇关于根据流程路径过滤呼叫者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆