RAS_STATS (Structures)
Last changed: jon@datasim.co.uk-213.234.34.1

.
Summary
stores the statistics for a single-link RAS connection, or for one of the links in a multilink RAS connection.

C# Signature:

[StructLayout(LayoutKind.Sequential, 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 dwHardwareOverrunErr;
     public int dwFramingErr;
     public int dwBufferOverrunErr;
     public int dwCompressionRatioIn;
     public int dwCompressionRatioOut;
     public int dwBps;
     public int dwConnectionDuration;
}

VB Signature:

Private Structure RAS_STATS
     Public dwAlignmentErr As Integer
     Public dwBps As Integer
     Public dwBufferOverrunErr As Integer
     Public dwBytesRcved As Integer
     Public dwBytesXmited As Integer
     Public dwCompressionRatioIn As Integer
     Public dwCompressionRatioOut As Integer
     Public dwConnectionDuration As Integer
     Public dwCrcErr As Integer
     Public dwFramesRcved As Integer
     Public dwFramesXmited As Integer
     Public dwFramingErr As Integer
     Public dwHardwareOverrunErr As Integer
     Public dwSize As Integer
     Public dwTimeoutErr As Integer
End Struct

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

See docs for RasGetConnectionStatistics

Alternative Managed API:

http://www.codeplex.com/DotRas

Documentation
RAS_STATS on MSDN