用于检查特定用户所属的组/是其成员的API。 [英] API to check which group the particular User belongs to/ is a member of.
问题描述
在我们的应用程序中使用 NetUserEnum   ;
API 检索有关服务器上所有用户帐户的信息。
在其中一个结构中(USER_INFO_2结构 )
提供有关
的信息 结构包含有关用户的信息帐户,包括帐户名,密码数据,权限级别,用户主目录的路径
以及其他与用户相关的网络统计信息。 我正在使用这个 参数(
usri2_priv ) 到
获取属于 / Group 的会员的用户信息,但它只提供三个标志
1) USER_PRIV_GUEST = GUEST
2) USER_PRIV_USER = USER
3)  ; USER_PRIV_ADMIN =管理员
除上述提及的群组外,我想知道如何才能获得所属的用户或其他组的成员
您是否尝试过使用USER_INFO_3以便获取usri3_primary_group_id成员?
in our application am using NetUserEnum API to retrieve information about all user accounts on a server.
In one of the structure( USER_INFO_2 structure) which gives information about structure contains information about a user account, including the account name, password data, privilege level, the path to the user's home directory, and other user-related network statistics. and i am using this parameter( usri2_priv ) to get the info for User which belongs to /Member of Group but it gives only three flags
1) USER_PRIV_GUEST = GUEST
2) USER_PRIV_USER = USER
3) USER_PRIV_ADMIN = administrator
apart from these above mentioned groups i would like to know how can i get the User which belongs or member of another groups
Have you tried using USER_INFO_3 so that you can obtain the usri3_primary_group_id member?
这篇关于用于检查特定用户所属的组/是其成员的API。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!