Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

List Users and Groups on a Share

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

839 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