网站首页  词典首页

请输入您要查询的函数:

 

术语 netstatisticsget
释义 NetStatisticsGet
语法:
C++
NET_API_STATUS NetStatisticsGet(
__in LPWSTR server,
__in LPWSTR service,
__in DWORD level,
__in DWORD options,
__out LPBYTE *bufptr
);
NetStatisticsGet函数
为服务检索经营数据。目前,只有工作站和服务器的服务支持。
参数
服务器 [in]
指针指向一个字符串,它指定的DNS或NetBIOS的服务器的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
服务 [in]
一个字符串指针,指定服务有关的统计数据获取的名称。只有价值SERVICE_SERVER和SERVICE_WORKSTATION目前允许的。
Level [in]
指定的数据信息的Level。此参数可以是以下值。
ValueMeaning
一个工作站或服务器0Return统计数字。在bufptr参数指向STAT_WORKSTATION_0或STAT_SERVER_0结构。
选项 [in]
此参数必须为零。
bufptr [out]
指针的缓冲区,接收数据。这一数据格式取决于Level的参数值。此缓冲区分配制度,必须使用NetApiBufferFree释放功能。有关更多信息,请参阅网络管理功能,缓冲器和网络管理功能缓冲区长度。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值是一个系统错误代码。对于一个错误代码的列表,请参见系统错误代码。
备注
没有特殊组成员必须首先获得工作站统计。管理员或服务器操作员本地组的成员才可以成功地执行远程服务器上的NetStatisticsGet功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmstats.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
统计功能
NetServerGetInfo
STAT_SERVER_0
STAT_WORKSTATION_0
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年4月9日
==英文原文==NetStatisticsGet Function
Retrieves operating statistics for a service. Currently, only the workstation and server services are supported.
Syntax
C++
NET_API_STATUS NetStatisticsGet(
__in LPWSTR server,
__in LPWSTR service,
__in DWORD level,
__in DWORD options,
__out LPBYTE *bufptr
);
Parameters
server [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.
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.
level [in]
Specifies the information level of the data. This parameter can be the following value.
ValueMeaning
0Return statistics about a workstation or a server. The bufptr parameter points to a STAT_WORKSTATION_0 or a STAT_SERVER_0 structure.

options [in]
This parameter must be zero.
bufptr [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 .
Return Value
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.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmstats.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Statistics Functions
NetServerGetInfo
STAT_SERVER_0
STAT_WORKSTATION_0
Send comments about this topic to Microsoft
Build date: 4/9/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb525390(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:21:09