Solved

List Users and Groups on a Share

Posted on 2006-07-24
2
305 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

13 Experts available now in Live!

Get 1:1 Help Now