开发者

How do you enumerate users that belong to a given group or SID in C?

开发者 https://www.devze.com 2023-02-17 14:13 出处:网络
Given a group name say \'administ开发者_StackOverflowrators\' I need to get a list of all users in that group.

Given a group name say 'administ开发者_StackOverflowrators' I need to get a list of all users in that group.

Looking at http://msdn.microsoft.com/en-us/library/aa375742%28v=VS.85%29.aspx and I do not see a way to do that.


NetGroupGetUsers?


Not sure I understand the question when looking at the link, but you may want to look into WMI. I never used it from C, but from C# it was quite easy.


Maybe this sample code will help you:

http://msdn.microsoft.com/en-us/library/ms180907%28VS.80%29.aspx#Y456

0

精彩评论

暂无评论...
验证码 换一张
取 消