Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is there any way by means of which we can determine the network useage by IE using C#.
Any API that we can use to do the need fulfilled or any sample code will do.

Regards,
Ayush Jain
Posted

1 solution

You have several options:
1) There is the API of Microsoft Network Monitor (Network Monitor API[^])that you could use. It is installed as part of the application and there is a NetmonAPI.cs also, that contains all definitions. You might find some samples out there.
2) If you are interested in http traffic only, you can build a http proxy. Start here: http://www.codeproject.com/Articles/93301/Implementing-a-Multithreaded-HTTP-HTTPS-Debugging
3) You can access process data via WMI: http://msdn.microsoft.com/en-us/library/windows/desktop/aa394323(v=vs.85).aspx
4) You can also use performance counters, start here: http://www.codeproject.com/Articles/29986/A-Simple-Performance-Counter-Application
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900