ClearLastResult();
- r = _AccessController::CheckUserPrivilege(_PRV_NETWORK_STATISTICS_READ);
+ r = _AccessController::CheckUserPrivilege(_PRV_NETWORK_STATISTICS_READ, _PRV_NETWORK_STATISTICS);
r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
SysTryReturn(NID_NET, r == E_SUCCESS, INVALID_HANDLE, r,
"[%s] The application does not have the privilege to call this method.", GetErrorMessage(r));
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_NETWORK_STATISTICS_WRITE);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
-
SysAssertf(__pNetStatisticsImpl != null, "Not yet constructed. Construct() should be called before use.");
r = __pNetStatisticsImpl->Reset(operationMode, netStatType);
{
result r = E_SUCCESS;
- r = _AccessController::CheckUserPrivilege(_PRV_NETWORK_STATISTICS_WRITE);
- r = TransExceptionsExclusive(r, E_PRIVILEGE_DENIED, E_OUT_OF_MEMORY);
- SysTryReturnResult(NID_NET, r == E_SUCCESS, r, "The application does not have the privilege to call this method.");
-
SysAssertf(__pNetStatisticsImpl != null, "Not yet constructed. Construct() should be called before use.");
r = __pNetStatisticsImpl->ResetAll(operationMode);