Click here to Skip to main content
15,896,497 members
Articles / Programming Languages / C++

Simple Packet Sniffer in VC++ .NET

Rate me:
Please Sign up or sign in to vote.
3.07/5 (8 votes)
26 Jan 2005CPOL 101.2K   4.1K   17  
This is my first program. I hope it will be useful for someone who wants to write sniffer using WinPcap library.
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once


#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>

// TODO: reference additional headers your program requires here

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Poland Poland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions