>Hi,
>
>Anyone used GetFileSecurity and SetFileSecurity etc. API's in VFP to
>programmatically set security for folders and files? I found how to use
>above function in VB and C but no info for VFP.
>
>Q102102 HOWTO: Add an Access-Allowed ACE to a File (C)
>Q194757 HOWTO: Add an Access-Allowed ACE to a File Through Visual Basic
>Q240176 - HOWTO: Set Security on a NTFS Folder Programmatically
>
>At least Ed Rauh and Rick Strahl had a conversation about above - any chance that it's done already with VFP?
Your best bet is to use the ADSI ActiveX interface to do this. I use wrappers written in C to access low-level security-related APIs, which I would then call from VFP. You could take the example VB or VC++ code and create an in-process COM server to expose the interface to VFP via COM and follow the examples in the KB to implement the functionality you'd want.
The process of managing shares from Win9x and WinNT/2K is different, so you'd want to explore both sets of functions.