Page 1 of 1

Reading NTFS Rights possible with Purebasic?

Posted: Tue Oct 19, 2004 3:36 am
by sabre
Hi -

I am trying to create a little utility that will check the rights of a folder and or file. For example:

Check C:\windows and then display the NTFS rights assigned to that folder such as:

C:\Windows has these rights: Everyone = Read+Execute, Administrators = Full Control.

Is there any way to do this using PB perhaps through API calls or something? Any sample code or direction is greatly appreciate thanks

Posted: Tue Oct 19, 2004 10:33 am
by Max.²
Have a look at PureArea.net. Under userlibs you find ACL-Info which should do what you ask for.

http://www.purearea.net/pb/english/index.htm

There was a bug-report though, but dunno if it was really a bug or worked as designed or whatsoever. Had to do with some groups showing multiple times.

Posted: Wed Oct 20, 2004 12:38 am
by sabre
Thanks for the quick reply