Implemting a packet filter for WinXP

I'd like to implement a packet filter for Windows XP.  I'd like my code to have access to both inbound and outbound traffic, including the ability to modify or drop packets.  For example, when a packet meeting certain criteria arrives, I'd like to be able to drop it, along with other packets from the same IP address.  I'd also like to be able to restrict outbound traffic through packet inspection.

I'm familiar with TPC/IP, how to decode packets, etc., so what I'm really looking for is a pointer to some sample code on how to hook into XP at a relatively low level.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Svetlin_PanayotovConnect With a Mentor Commented:
Take a look here
There's good sample that works on Win2K -

Also if you're familiar with assembler -

ejackschAuthor Commented:
Thanks Svetlin, much appreciated!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.