I’m currently working on a .NET Cybercafe management program and would like to calculate the amount of data downloaded from the Internet by each computer in the Cybercafe, since users have to pay for their download amount.
I believe there has to be some sort of API in Windows to give me this.
Where should I look?
Thanks everyone.
I just found
System.Net.NetworkInformationnamespace and wrote following code:I got this output:
Local Area Connection 2 (953,67Mb/s, Up) Realtek RTL8169/8110 Family PCI Gigabit Ethernet NIC (NDIS 6.0) 1.906,92Mb sent, 483,77Mb received Local Area Connection 3 (9,54Mb/s, Down) D-Link DFE-520TX PCI Fast Ethernet Adapter 0,00Mb sent, 0,00Mb received Loopback Pseudo-Interface 1 (1.024,00Mb/s, Up) Software Loopback Interface 1 0,00Mb sent, 0,00Mb receivedHTH