RasGetConnectionStatistics (rasapi32)
Last changed: -202.114.97.142

.
Summary
Retrieves accumulated connection statistics for a connection

C# Signature:

[DllImport("rasapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
static extern uint RasGetConnectionStatistics(IntPtr hRasConn, ref RAS_STATS lpStatistics);

VB Signature:

Declare Shared Function RasGetConnectionStatistics Lib "rasapi32.dll" (ByVal hRasConn As IntPtr, ByRef lpStatistics As RAS_STATS) As UInt32

User-Defined Types:

RAS_STATS.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

RAS_STATS statistics = new RAS_STATS();
statistics.dwSize = Marshal.SizeOf(statistics);
uint retVal = RasGetConnectionStatistics(rasConnectionHandle, ref statistics);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation