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(
LPWSTR server,
LPWSTR 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. |
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmstats.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetServerGetInfo, STAT_SERVER_0, STAT_WORKSTATION_0