views:

1400

answers:

3

Does anyone have a set of classes / components that will work with Delphi 2009 (Unicode) to read and write NTFS file permissions?

There was a thing called "NTSet" - but they stopped development at Delphi 2006 about 3 years ago :-(

Any other takers??

Thanks! Marc

+8  A: 

JCL has units to deal with file permissions, and they claim D2009 compatibility.

dmajkic
I believe the best link would be to here: http://blog.delphi-jedi.net/security-library/
Mick
Documentation for the above security library is here: http://jwscldoc.delphi-jedi.net/
Mick
Thanks - I'll see how that library lives up - looks promising!
marc_s
A: 

Although not native Delphi, you could use SetACL. With that, you have 2 options. You can shell-out and call SetAcl.exe from your Delphi program, or you can use the SetACL.OCX and call it directly from your code.

Of course, you'd need to distribute SetAcl.ocx with your application, but it works very very well.

Mick
As long as their are other ways, I'd definitely prefer a native Delphi way over OCX or shelling out to a EXE - but thanks anyway!
marc_s
+1  A: 

Colin Wilson's "NT low-level" component set wraps the APIs you need, and supports Delphi 2009 as well as earlier releases. However you may need to rely on the MS documentation and samples if you need detailed help to implement a specific operation. You can find the components (and others) at http://www.wilsonc.demon.co.uk/delphi.htm. They are freeware/donationware. I have found many uses for them over the years.

frogb
Colin's stuff is high quality and extremely useful. +1
gabr