wlrwx
驱动小牛
驱动小牛
  • 注册日期2002-04-05
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分11分
  • 威望11点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:1181回复:3

How can i get the local address and port? high scores for help...online wait ..help

楼主#
更多 发布于:2002-04-22 14:51
Hi,
I\'m writing a tdi filter driver,when my function of ClientEventConnect was
called, I can get the remote address and remote port via the function\'s
paramters,But HOW can I get the local address and local port at the time the
function ClientEventConnect calling?

Another question is when the TDI_CONNECT internal device io contirl hanppened , I can get geh local address and local port ,but how can I get the connection\'s remote port and address???

Somebody who can give me some advice or suggestion about this? I\'m very
thankful of your help..

 :P :P :P

最新喜欢:

IammeIamme
真正的浪子―――― 是掠过城市的微风,每个人都能感到他的清新,可没有人能留住...... 亦是划过天际的流星,所有人都能仰望他夺目的光芒,没有人能触及...... 风止于森林,流星损于黄土......非凡浪子归于他的最爱......
Tom.Cat
禁止发言
禁止发言
  • 注册日期2001-10-10
  • 最后登录2019-07-29
  • 粉丝1
  • 关注0
  • 积分-53792分
  • 威望197411点
  • 贡献值0点
  • 好评度5点
  • 原创分0分
  • 专家分0分
  • 社区居民
沙发#
发布于:2002-04-22 19:49
用户被禁言,该主题自动屏蔽!
ymvv
驱动牛犊
驱动牛犊
  • 注册日期2001-11-30
  • 最后登录2005-05-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-04-23 14:41
TSTATUS
    ClientEventConnect (
        IN PVOID  TdiEventContext,
        IN LONG  RemoteAddressLength,
        IN PVOID  RemoteAddress,
        IN LONG  UserDataLength,
        IN PVOID  UserData,
        IN LONG  OptionsLength,
        IN PVOID  Options,
        OUT CONNECTION_CONTEXT  *ConnectionContext,
        OUT PIRP  *AcceptIrp
        );
其中:
ConnectionContext Points to a caller-supplied variable in which ClientEventConnect returns a pointer to the client\'s context area in which it maintains client-determined state for this connection endpoint.   Usually, the specified address is identical to the value that the client set for the value at EaBuffer when it originally called ZwCreateFile to open the local connection endpoint.
If ClientEventConnect rejects the offered connection, the value it returns is NULL.

我想,这里面应该有你的地址信息了

你的第二个问题没看懂。
没有你,我不知道怎么办...
wlrwx
驱动小牛
驱动小牛
  • 注册日期2002-04-05
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分11分
  • 威望11点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-04-23 15:21
the paramter ConnectionContext of ClientEventConnect Callback function is the client\'s context area, I know this , but there contains the connectiong endpoint is not sure, I\'ve hook this event , some of the client put a deviceobject in it,so.....
 :( :( :(
真正的浪子―――― 是掠过城市的微风,每个人都能感到他的清新,可没有人能留住...... 亦是划过天际的流星,所有人都能仰望他夺目的光芒,没有人能触及...... 风止于森林,流星损于黄土......非凡浪子归于他的最爱......
游客

返回顶部