Experimental purpose
Learn about WinPcap and compile the code in which to get the list of devices, learn about Microsoft Visual studio2010, and use it to compile
Experimental steps
1, create a new project, template select Visual C + +, the right choice Win32 console, the name of the custom.
2. Copy the obtained code into, compile, find the error, make the mode, set the project well
Item-->** Properties (ALT+F7)
Configuration Properties---inventory tools--input and output--embedded list--No
Item-->** Properties (ALT+F7)
Configuration Properties-->c/c++--> General--Additional include directory--
Item-->** Properties (ALT+F7)
Configuration Properties--linker--general--Additional library directories--
Item-->** Properties (ALT+F7)
Configuration Properties--linker--Add dependency--add "; Packet.lib;wpcap.lib "
Item-->** Properties (ALT+F7)
Configuration Properties-->c/c++--> Preprocessor---preprocessor definition--add "; Have_remote "
The experiment is over.
This article from "12034899" blog, declined reprint!
An experimental report on obtaining a list of devices in WinPcap