NTFS permissions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way in Visual Basic to determine when a user has explicit rights
to a directory and when they have rights due to inheritance?
 
Troy,
One way would be to use P/Invoke, reading Keith Brown's book "The .NET
Developer's Guide to Windows Security" from Addison Wesley it does not
appear to be that difficult, however there are a number of P/Invoke
functions & structures that you need to use. Most of Keith's samples are
actually in Managed C++ that create helper objects that you can simply call
from VB.NET or C#. For info on the book (and an on-line version) see:
http://www.pluralsight.com/keith/book/html/book.html

Reading Keith's book I understand that VS.NET 2005 (.NET 2.0) aka Whidbey
due out later in 2005 provides support to check & set Win32 permissions on
objects. For info on VS.NET 2005 see http://lab.msdn.microsoft.com/vs2005/.

I'm not sure if WMI supports this or not.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top