Solved

List Users and Groups on a Share

Posted on 2006-07-24
2
322 Views
Last Modified: 2008-02-01
Hi,


How do we list the users in a shared folder on the network in C#/VB.NEt?

I think that we have to use something on lines of SEcurityDescriptor but am not able to proceed in the right direction. Can someone please point me in the right direction?


0
Comment
Question by:hangar18
2 Comments
 
LVL 41

Accepted Solution

by:
graye earned 300 total points
ID: 17205599
Take a look at the NetFileGetInfo API and the File_Info_3 structure

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netfilegetinfo.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/file_info_3_str.asp

Oddly enough these items are not in the pinvoke wiki...

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now