阅读:1181回复:3
How can i get the local address and port? high scores for help...online wait ..help
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 |
|
最新喜欢:![]()
|
沙发#
发布于:2002-04-22 19:49
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于: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. 我想,这里面应该有你的地址信息了 你的第二个问题没看懂。 |
|
|
地板#
发布于: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.....
:( :( :( |
|
|