Setting User Access Rights in Windows

Posted by user314282 on Stack Overflow See other posts from Stack Overflow or by user314282
Published on 2010-04-12T07:03:33Z Indexed on 2010/04/12 7:43 UTC
Read the original article Hit count: 249

Filed under:

Can someone tell me how to set file permissions in Delphi 2006? I am using TINIFile.Create to create INI files in my application. The problem is that if I create the file while logged onto Windows as an administrator and then try to run the application as just a standard user and overwrite the INI file, I do not have permission to do so. I put the file in the AllUsers\ApplicationData\MyProduct folder. I'd like to set the permissions to this folder. I need AllUsers to have Full permissions to the MyProduct folder. If its possible to do this through a WindowsAPI that'd be great because I also need to do this in C++ and C#. I'd really appreciate any help. Thanks!

© Stack Overflow or respective owner

Related posts about delphi