如何使用C ++语言检索用户成员身份 [英] How to retrieve User membership by using C++ language

查看:117
本文介绍了如何使用C ++语言检索用户成员身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,

我正在寻找能够在本地和活动目录环境中按如下方式返回值的c ++示例代码.
如果有需要,您能给我参考吗?
尽管NetShareGetInfo函数( http://msdn.microsoft.com/zh-CN/library /bb525388(VS.85).aspx )可能会引用,
我不知道如何从这里检索群组信息.

I am looking for c++ sample code is able to return the value as follows on both local and active directory environment.
Would you give me the reference to meet requirement if any?
Although NetShareGetInfo function(http://msdn.microsoft.com/en-us/library/bb525388(VS.85).aspx) may refer,
I don't know how to retrieve group information from here.

C:\>样本服务器名称" " sharename"
共享名:路径:团体(会员)
-------------------------------------------------- -------------------
              b C:\ Tools \ C ++      BUILTIN \ Administrators

C:\>sample "servername" "sharename"
Sharename:          Path:                 Groups(Membership)
---------------------------------------------------------------------
C                        C:\Tools\C++       BUILTIN\Administrators

参数)
服务器名称;电脑名称
共享名;存在文件共享的名称

Parameters)
servername; Computer name
sharename; The name of the file share present

最好的问候.
-Umashika

Best Regards.
-Umashika

推荐答案

 

 

Hi,

 

如果直接位于本地,则应将服务器名保留为NULL,而且我不太清楚您要检索什么信息?访问写还是读?

If directly is local, we should keep servername as NULL, and I'm not very clear that you want to retrieve what information? Access of write or read?

 

致谢!

Jesse


这篇关于如何使用C ++语言检索用户成员身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆