网站首页  词典首页

请输入您要查询的函数:

 

术语 netgetdisplayinformationindex
释义 NetGetDisplayInformationIndex
语法:
C++
NET_API_STATUS NetGetDisplayInformationIndex(
__in LPCWSTR ServerName,
__in DWORD Level,
__in LPCWSTR Prefix,
__out LPDWORD Index
);
NetGetDisplayInformationIndex功能
该NetGetDisplayInformationIndex函数返回的第一个显示信息项的名称为指定字符串或其名称开头字母顺序如下字符串的索引。您可以使用此函数来确定一个函数的NetQueryDisplayInformation后续调用的开始索引。
参数
服务器名 [in]
指针常量字符串指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
Level [in]
指定帐户Level查询。此参数可以是下列值之一。
ValueMeaning
1Query所有本地和全球(普通)用户帐户。
2Query所有工作站和服务器的用户帐户。
3Query所有的全局组。
前缀 [in]
一个字符串指针,指定前缀要搜索。
指数[out]
指针的值,它接收请求进入指数。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe用户没有获得所需的信息。
ERROR_INVALID_LEVELThe价值级别参数指定无效。
ERROR_NO_MORE_ITEMSThere没有更多的项目,使其运作。
NERR_InvalidComputerThe计算机名无效。
备注
如果您调用域控制器上运行Active Directory的这一功能,允许访问或拒绝的访问控制列表的安全对象(ACL)的基础。默认的ACL允许所有经过身份验证的用户和“前成员,Windows 2000兼容访问”组查看信息。如果您调用一个成员服务器或工作站,所有的身份验证的用户可以查看此功能的信息。有关匿名访问的信息,并限制在这些平台上匿名访问,看到了网络管理功能的安全要求。欲了解更多有关的ACL,ACE的,和访问令牌信息,请访问控制模型。
该函数只返回信息,而来电者具有读取权限。调用者必须具有名单到域对象的内容访问,并列举整个SAM域上的SAM服务器访问对象在系统容器中。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmaccess.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
获得功能
NetQueryDisplayInformation
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetGetDisplayInformationIndex Function
The NetGetDisplayInformationIndex function returns the index of the first display information entry whose name begins with a specified string or whose name alphabetically follows the string. You can use this function to determine a starting index for subsequent calls to the NetQueryDisplayInformation function.
Syntax
C++
NET_API_STATUS NetGetDisplayInformationIndex(
__in LPCWSTR ServerName,
__in DWORD Level,
__in LPCWSTR Prefix,
__out LPDWORD Index
);
Parameters
ServerName [in]
Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
Level [in]
Specifies the level of accounts to query. This parameter can be one of the following values.
ValueMeaning
1Query all local and global (normal) user accounts.
2Query all workstation and server user accounts.
3Query all global groups.

Prefix [in]
Pointer to a string that specifies the prefix for which to search.
Index [out]
Pointer to a value that receives the index of the requested entry.
Return Value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value can be one of the following error codes.
Return codeDescription
ERROR_ACCESS_DENIEDThe user does not have access to the requested information.
ERROR_INVALID_LEVELThe value specified for the Level parameter is invalid.
ERROR_NO_MORE_ITEMSThere were no more items on which to operate.
NERR_InvalidComputerThe computer name is invalid.

Remarks
If you call this function on a domain controller that is running Active Directory, access is allowed or denied based on the access control list (ACL) for the securable object . The default ACL permits all authenticated users and members of the " Pre-Windows 2000 compatible access " group to view the information. If you call this function on a member server or workstation, all authenticated users can view the information. For information about anonymous access and restricting anonymous access on these platforms, see Security Requirements for the Network Management Functions . For more information on ACLs, ACEs, and access tokens, see Access Control Model .
The function only returns information to which the caller has Read access. The caller must have List Contents access to the Domain object, and Enumerate Entire SAM Domain access on the SAM Server object located in the System container.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmaccess.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Get Functions
NetQueryDisplayInformation
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370421(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 11:26:15