RasClearConnectionStatistics function (ras.h)

The RasClearConnectionStatistics functions clears any accumulated statistics for the specified RAS connection.

Syntax

DWORD RasClearConnectionStatistics(
  HRASCONN hRasConn
);

Parameters

hRasConn

Handle to the connection. Use RasDial or RasEnumConnections to obtain this handle.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes or a value from Routing and Remote Access Error Codes or Winerror.h.

Value Meaning
ERROR_INVALID_HANDLE
The hRasConn parameter does not specify a valid connection.
ERROR_NOT_ENOUGH_MEMORY
The function could not allocate sufficient memory to complete the operation.
Other
Use FormatMessage to retrieve the system error message that corresponds to the error code returned.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ras.h
Library Rasapi32.lib
DLL Rasapi32.dll

See also

RAS_STATS

RasClearLinkStatistics

RasDial

RasEnumConnections

RasGetConnectionStatistics

Remote Access Service (RAS) Overview

Remote Access Service Functions