NetStatisticsGet2 or Net32StatisticsGet2

The NetStatisticsGet2 API retrieves and optionally clears operating statistics for a service.

Note: The NetStatisticsGet2 API replaces both the NetStatisticsGet API and the NetStatisticsClear API, which are now obsolete.