Skip to content

Latest commit

 

History

History
150 lines (118 loc) · 3.79 KB

nf-mprapi-mpradminportclearstats.md

File metadata and controls

150 lines (118 loc) · 3.79 KB
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.
MprAdminPortClearStats
MprAdminPortClearStats function [RAS]
_mpr_mpradminportclearstats
mprapi/MprAdminPortClearStats
rras.mpradminportclearstats
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
MprAdminPortClearStats
mprapi/MprAdminPortClearStats
c++
APIRef
kbSyntax
DllExport
Mprapi.dll
MprAdminPortClearStats

MprAdminPortClearStats function

-description

The MprAdminPortClearStats function resets the statistics for the specified port.

-parameters

-param hRasServer [in]

Handle to the RAS server on which to clear the statistics for the specified port. Obtain this handle by calling MprAdminServerConnect.

-param hPort [in]

Handle to the port for which statistics are reset. Obtain this handle by calling MprAdminPortEnum.

-returns

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
ERROR_ACCESS_DENIED
The calling application does not have sufficient privileges.
ERROR_DDM_NOT_RUNNING
The Demand Dial Manager (DDM) is not running, possibly because the Dynamic Interface Manager (DIM) is configured to run only on a LAN.
RPC_S_INVALID_BINDING
The handle to the RAS server or the handle to the port is invalid.
Other
An error from MprError.h, RasError.h, or WinError.h.
 
 

-remarks

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.

-see-also

MprAdminPortEnum

MprAdminServerConnect

RAS Administration Functions

Remote Access Service Administration Reference