Delphi 2009 classes / components to read/write file permissions

淺唱寂寞╮ 提交于 2019-12-07 07:51:27

问题


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


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/508240/delphi-2009-classes-components-to-read-write-file-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!