Platform SDK: RAS/Routing and RAS |
The RasClearLinkStatistics functions clears any accumulated statistics for the specified link in a RAS multilink connection.
DWORD RasClearLinkStatistics( HRASCONN hRasConn, // handle to connection DWORD dwSubEntry // SubEntry for link );
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
ERROR_INVALID_HANDLE | The hRasConn parameter does not specify a valid connection. |
ERROR_INVALID_PARAMETER | The dwSubEntry parameter is zero. |
ERROR_NO_CONNECTION | RAS could not find a connected port that corresponds to the value in the dwSubEntry parameter. |
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. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Ras.h.
Library: Use Rasapi32.lib.
Remote Access Service (RAS) Overview, Remote Access Service Functions, RasClearConnectionStatistics, RasGetLinkStatistics