How to cancel a TDI_RECEIVE_DATAGRAM IRP

Hi all,

I have a driver in which I make extensive use of TDI to send and receive UDP
packets. I have come upon a problem that I can’t find an answer to in the
documentation anywhere. Suppose I issue a TDI_RECEIVE_DATAGRAM IRP (by using
TdiBuildReceiveDatagram and then IoCallDriver). I then find out that I will
never receive the datagram that I issued the receive for. How do I “undo”
the TDI_RECEIVE_DATAGRAM IRP. Can I simply call IoCancelIrp, or is there an
official way to do this?

Thanks,

Don

You can avoid using this IRP at all and rely on the
ClientEventReceiveDatagram instead

“Don” wrote in message
news:…
> Hi all,
>
> I have a driver in which I make extensive use of TDI to send and receive UDP
> packets. I have come upon a problem that I can’t find an answer to in the
> documentation anywhere. Suppose I issue a TDI_RECEIVE_DATAGRAM IRP (by using
> TdiBuildReceiveDatagram and then IoCallDriver). I then find out that I will
> never receive the datagram that I issued the receive for. How do I “undo”
> the TDI_RECEIVE_DATAGRAM IRP. Can I simply call IoCancelIrp, or is there an
> official way to do this?
>
> Thanks,
>
> Don
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com