By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,346 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,346 IT Pros & Developers. It's quick & easy.

NTFS permissions

P: n/a
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?
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Troy" <Tr**@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
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?

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.