An experimental report on obtaining a list of devices in WinPcap

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.