NetStatisticsGet2 retrieves operating statistics for a service. Currently, only the Workstation and Server services are supported.
Only members of the Administrators or Account Operators local group can successfully execute NetStatisticsGet2 on a remote server.
NET_API_STATUS NetStatisticsGet2(
LPTSTR server, | |
LPTSTR service, | |
DWORD level, | |
DWORD options, | |
LPBYTE *bufptr | |
); |
Value |
Meaning |
0 |
The bufptr parameter points to an array of STAT_WORKSTATION_0 or STAT_SERVER_0 structures. |
NetServerGetInfo, STAT_SERVER_0, STAT_WORKSTATION_0
Comments: