Why don't you look for the thread that I posted here a while ago (a puzzled by winsock, use the search function...) It's a program that captures (and could also send) packets accross a raw socket
Schim it never made any sense to me, anyone else want to help?