Skip to content

Latest commit

 

History

History
138 lines (97 loc) · 4.1 KB

nf-lmstats-netstatisticsget.md

File metadata and controls

138 lines (97 loc) · 4.1 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:lmstats.NetStatisticsGet
NetStatisticsGet function (lmstats.h)
Retrieves operating statistics for a service. Currently, only the workstation and server services are supported.
0
NetStatisticsGet
NetStatisticsGet function [Files]
_win32_netstatisticsget
fs.netstatisticsget
lmstats/NetStatisticsGet
netmgmt.netstatisticsget
fs\netstatisticsget.htm
fs
d0e51d8a-2f54-42ca-9759-0da82c1f0f55
12/05/2018
0, NetStatisticsGet, NetStatisticsGet function [Files], _win32_netstatisticsget, fs.netstatisticsget, lmstats/NetStatisticsGet, netmgmt.netstatisticsget
lmstats.h
Lm.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Netapi32.lib
Netapi32.dll
Windows
19H1
NetStatisticsGet
lmstats/NetStatisticsGet
c++
APIRef
kbSyntax
DllExport
Netapi32.dll
NetStatisticsGet

NetStatisticsGet function

-description

Retrieves operating statistics for a service. Currently, only the workstation and server services are supported.

-parameters

-param ServerName [in]

Pointer to a string that specifies the DNS or NetBIOS name of the server on which the function is to execute. If this parameter is NULL, the local computer is used.

-param Service [in]

Pointer to a string that specifies the name of the service about which to get the statistics. Only the values SERVICE_SERVER and SERVICE_WORKSTATION are currently allowed.

-param Level [in]

Specifies the information level of the data. This parameter can be the following value.

Value Meaning
0
Return statistics about a workstation or a server. The bufptr parameter points to a STAT_WORKSTATION_0 or a STAT_SERVER_0 structure.

-param Options [in]

This parameter must be zero.

-param Buffer [out]

Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. For more information, see Network Management Function Buffers and Network Management Function Buffer Lengths.

-returns

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

-remarks

No special group membership is required to obtain workstation statistics. Only members of the Administrators or Server Operators local group can successfully execute the NetStatisticsGet function on a remote server.

-see-also

NetServerGetInfo

Network Management Functions

Network Management Overview

STAT_SERVER_0

STAT_WORKSTATION_0

Statistics Functions