Dear Sir/Madam, We are using Winpcap driver over windows 2000. The scenario is like this.. The "PacketReceivePacket" function of the driver is called to capture packets from the network adapter. It returns whenever the buffer allocated to it is filled. Sometimes it takes lot of time, specially when buffer size is big. The problem is that the call to driver is blocking, sometimes it is desirable to stop the capturing process in between, but we do not know how to do it as no such functions as Interrupt is provided to stop the capturing process dynamically. Can you help me regarding this. Suppose the size of buffer specified is 1 MB, and it takes some 2 mins (say) to capture those many packets from the network and we want to stop it before 2 mins randomly at any time. Is there anything like Interrupt which will cause "PacketReceivePacket" function to return prematurely. There is another call "PacketSetReadTimeOut" which allow us to set time for which capturing will be done. But it still doesnt solve the probem. Let it be set to 2mins, then the requirement will be to stop capturing prematurely before 2mins. For this we need something similar to Interrupt which allow us to stop capturing prematurely.
I hope you understood the problem. Please suggest me regarding this. Thanks and regards With Best Wishes Ali Ahmed Shakir L&T Infotech Ltd
