Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Syntax

typedef struct _RAS_STATS {
  DWORD 
dwSize;
  DWORD 
dwBytesXmited;
  DWORD 
dwBytesRcved;
  DWORD 
dwFramesXmited;
  DWORD 
dwFramesRcved;
  DWORD 
dwCrcErr;
  DWORD 
dwTimeoutErr;
  DWORD 
dwAlignmentErr;
  DWORD 
dwHardwareOverrunErr;
  DWORD 
dwFramingErr;
  DWORD 
dwBufferOverrunErr;
  DWORD 
dwCompressionRatioIn;
  DWORD 
dwCompressionRatioOut;
  DWORD 
dwBps;
  DWORD 
dwConnectDuration;
} RAS_STATS, *PRAS_STATS;

Members

dwSize

Specifies the version of the structure. Set this member to sizeof ( RAS_STATS) before using the structure in a function call.

dwBytesXmited

The number of bytes transmitted through this connection or link.

dwBytesRcved

The number of bytes received through this connection or link.

dwFramesXmited

The number frames transmitted through this connection or link.

dwFramesRcved

The number of frames received through this connection or link.

dwCrcErr

The number of cyclic redundancy check (CRC) errors on this connection or link.

dwTimeoutErr

The number of timeout errors on this connection or link.

dwAlignmentErr

The number of alignment errors on this connection or link.

dwHardwareOverrunErr

The number of hardware overrun errors on this connection or link.

dwFramingErr

The number of framing errors on this connection or link.

dwBufferOverrunErr

The number of buffer overrun errors on this connection or link.

dwCompressionRatioIn

The compression ratio for the data being received on this connection or link.

dwCompressionRatioOut

The compression ratio for the data being transmitted on this connection or link.

dwBps

The speed of the connection or link, in bits per second. This speed is negotiated at the time that the connection or link is established.

This speed is not equal to the throughput of the connection or link. To calculate the average throughput, divide the number of bytes transmitted ( dwBytesXmited) and received ( dwBytesRcved) by the amount of time the connection or link has been up ( dwConnectDuration).

dwConnectDuration

The amount of time, in milliseconds, that the connection or link has been connected.

Requirements

Header ras.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also