Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
measure network traffic c++
It's quite easy using the .NET libraries. But if you want to stray away from that, you'll probably have to find a way to listen to the network adapter.
It might be similar to writing a sniffer … not sure though. Check out codeproject.com or just google it.
I'm sure someone's written something you can example from to learn.