UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mprapi.MprAdminPortClearStats |
MprAdminPortClearStats function (mprapi.h) |
The MprAdminPortClearStats function resets the statistics for the specified port. |
|
rras\mpradminportclearstats.htm |
RRAS |
dd932134-7954-4e0a-8170-1dea4ce82011 |
12/05/2018 |
MprAdminPortClearStats, MprAdminPortClearStats function [RAS], _mpr_mpradminportclearstats, mprapi/MprAdminPortClearStats, rras.mpradminportclearstats |
mprapi.h |
Windows |
Windows 2000 Professional [desktop apps only] |
Windows 2000 Server [desktop apps only] |
Mprapi.lib |
Mprapi.dll |
Windows |
19H1 |
|
|
|
|
|
|
The MprAdminPortClearStats function resets the statistics for the specified port.
Handle to the RAS server on which to clear the statistics for the specified port. Obtain this handle by calling MprAdminServerConnect.
Handle to the port for which statistics are reset. Obtain this handle by calling MprAdminPortEnum.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
Value | Meaning |
---|---|
|
The calling application does not have sufficient privileges. |
|
The Demand Dial Manager (DDM) is not running, possibly because the Dynamic Interface Manager (DIM) is configured to run only on a LAN. |
|
The handle to the RAS server or the handle to the port is invalid. |
|
An error from MprError.h, RasError.h, or WinError.h. |
This function is available on Windows NT Server 4.0 if the RRAS redistributable is installed. However, the version of Mprapi.dll that ships with the RRAS redistributable exports the function as RasAdminPortClearStats rather than MprAdminPortClearStats. Therefore, when using the RRAS redistributable, use LoadLibrary and GetProcAddress to access this function.