From: Thomas F. Divine [tdivine@pcausa.com] Sent: Friday, April 14, 2000 10:08 AM To: NT Developers Interest List Subject: [ntdev] Re: Filter driver on TCP/IP driver Gopikrishna, There are several potential problems in your code. One to look at right away is the method that you use in DrvDispatchGeneral to copy the current stack location to the next stack location. The method that you used will result in the caller's completion routine being called twice instead of once. Clone the IoCopyCurrentStackLocationToNext MACRO from the W2K DDK into your NT project to correct this. There is an article in the OSR NTInsider called (I think...) "The Secrets Of The Universe Revealed" that discusses quirks in the handling of IRPs. See . In addition, at lease check to see if there is sufficient stack locations to pass the call down. If Irp->CurrentStackLocation == 1, then there really isn't a next stack location to copy to. In your call to IoCreateDevice you need to adopt the DeviceType and Characteristics of the lower level driver. After your call to IoCreateDevice you need to adopt the DO_XXX_IO Falgs settings of the target device as well. This shouldn't matter too much, however, since Tcp, etc. do not use Read/Write. I hope that these comments will help. Regards, Thomas F. Divine PCAUSA - Toolkits & Resources For Network Software Developers NDIS Protocol - TDI Client - Windows 95 Redirector ----- Original Message ----- From: Gopikrishna To: NT Developers Interest List Sent: Friday, April 14, 2000 6:46 AM Subject: [ntdev] Filter driver on TCP/IP driver I am new to writing Drivers. I have wriiten a hook driver over TCP/IP driver. In my hook driver I am dispatching all the IRP's to the TCP/IP driver through IOCallDriver method ( I felt, after successfully dispatching all the IRP's, I can add fuctionality to my filter driver). I am successfully able to attach to "\Device\Tcp". But after that My system is crashing. I am attaching the code below. Please tell me if I am missing anything. Regards, Gopikrishna. --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com