Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The RasClearLinkStatistics functions clears any accumulated statistics for the specified link in a RAS multilink connection.
Syntax
DWORD RasClearLinkStatistics(
[in] HRASCONN hRasConn,
[in] DWORD dwSubEntry
);
Parameters
[in] hRasConn
Handle to the connection. Use RasDial or RasEnumConnections to obtain this handle.
[in] dwSubEntry
Specifies the subentry that corresponds to the link for which to clear statistics.
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 |
---|---|
|
The hRasConn parameter does not specify a valid connection. |
|
The dwSubEntry parameter is zero. |
|
RAS could not find a connected port that corresponds to the value in the dwSubEntry parameter. |
|
The function could not allocate sufficient memory to complete the operation. |
|
Use FormatMessage to retrieve the system error message that corresponds to the error code returned. |
Requirements
Requirement | Value |
---|---|
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 |