I've been trying to create a program to analyze ethernet frames captured in pcap files using MS Visual Studio 2012 in C++. I have downloaded latest WinPcap (4.1.3) and Libpcap (1.7.2).

I've managed to include all the sub-folders in the extracted libpcap folder into my project (if I added only the root folder, the includes didn't work). And yet I have an error saying that there is no definition of type "Adapter". So I searched all the files in the Libpcap and haven't found the definition. I've also tried to search if it is maybe defined in some sort of standard library, again with no luck.

Am I missing something? Do I need to include the libpcap in some special way? (currently I'm just including `#include <pcap.h>`)

I've also tried to play a bit and commented the errorous line in pcap.h: 

```
Adapter *pcap_get_adapter(pcap_t *p);

```

And I got a different error:

> 
> Error 2 error LNK2019: unresolved external symbol
>  \_pcap\_open\_offline\_with\_tstamp\_precision
> 
> 
> 

So after some reaserch I've found that I may be missing some preprocessor definitions (`WIN32;WPCAP;HAVE_REMOTE`). That triggered yet another problem, that header file `Win32-Extensions.h` couldn't be found. And after that I just gave up.

Thanks for any suggestions.