I believe this is acquired from RASAPI.
The method is RasGetConnectio nStatistics ...
[DllImport("rasa pi32.dll", CharSet=CharSet .Auto, SetLastError=tr ue)]
static extern uint RasGetConnectio nStatistics(Int Ptr hRasConn, ref RAS_STATS
lpStatistics);
[StructLayout(La youtKind.Sequen tial, CharSet=CharSet .Auto)]
struct RAS_STATS
{
public int dwSize;
public int dwBytesXmited;
public int dwBytesRcved;
public int dwFramesXmited;
public int dwFramesRcved;
public int dwCrcErr;
public int dwTimeoutErr;
public int dwAlignmentErr;
public int dwHardwareOverr unErr;
public int dwFramingErr;
public int dwBufferOverrun Err;
public int dwCompressionRa tioIn;
public int dwCompressionRa tioOut;
public int dwBps;
public int dwConnectionDur ation;
}
http://www.codeproject.com/aspnet/webdialup.asp includes a wrapper for this
functionality ...
Cheers,
Greg Young
And I got my blog post for the day ... been a while since I played with
RasAPI :)
"Ricardo" <ri*****@fundep .br> wrote in message
news:uf******** ******@TK2MSFTN GP05.phx.gbl...
Can anyone help me to get the information given if you open the status
box of your internet connection? It gives connection speed, duration,
bytes sent, and bytes received.Is there some way to read this information
from performancelog? thankyou