I have to write some code to retrieve network packets from an Ethernet card in Windows using ANSI C. Can anybody tell me where to get started?
The easiest way to do this is to use the PCAP library, there's a version for Windows here and a basic example here