阅读:2075回复:2
请问如何在TDI TDI_EVENT_RECEIVE中获得port and IP address?求教!
有问题求教,请问TDI_EVENT_RECEIVE中怎么获得source/dest port and IP address?
TdiReceiveEventHandler( PVOID TdiEventContext, CONNECTION_CONTEXT ConnectionContext, ULONG ReceiveFlags, ULONG BytesIndicated, ULONG BytesAvailable, ULONG *BytesTaken, PVOID Tsdu, PIRP *IoRequestPacket ) 我想应该在ConnectionContext里得到,但是搞半天没有取到,真是郁闷s了。怎么才能取到啊??? |
|
|
沙发#
发布于:2004-09-13 19:53
搞定了。原来ConnectionContext的结构是不透明的,要自己在connect里定义的。
|
|
|
板凳#
发布于:2004-09-13 19:54
搞定了。:) 原来ConnectionContext的结构是不透明的,要自己在connect里定义的。
|
|
|