Get the list of devices for WinPcap
Get the list of devices for WinPcap
(1) extract the file to disk C.
two。 Open the WinPcap Chinese technical documentation-- > get the equipment list (copy code)
3. Start-- > all programs-- > Microsoft Visual Studio 2010 folder-- > Microsoft Visual Studio 2010
4. File-- > New-- > Project (enter name and location)-- > OK-- > paste Code
5. Matters needing attention
Project-- > * * attribute (alt+F7)
Configure properties-- > inventory tool-- > input and output-- > embed list-- > No
Project-- > * * attribute (alt+F7)
Configuration properties-- > Iclude folder in the WpdPack folder of the C drive)
Project-- > * * attribute (alt+F7)
Configuration Properties-- > Linker-- > General-- > additional Library Directory-- > (Select the Lib folder in the WpdPack folder in disk C)
Project-- > * * attribute (alt+F7)
Configure properties-- > linker-- > input-- > attach dependencies-- > supplement "; Packet.lib;wpcap.lib"
Project-- > * * attribute (alt+F7)
Configuration properties-- > Candlestick colors-- > preprocessor-- > preprocessor definition-- > supplement "; HAVE_REMOTE"
6. Start debugging (Ctrl+F5 if there is a flicker)