Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check user's rights
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01210145
Message ID:
01211232
Views:
26
Thanks. After looking through the thread, I could not find a technique that explicitly interrogated an object's ACL for specific NTFS permissions, this so that you could pass in an object (e.g., a folder), and get back a bitmask that would indicate things for a specific user like:
- Can list folder contents
- Can create / delete files in folder
- Has all access denied
- Is the object owner

... and likewise for file objects rather than folder objects.

All the techniques I saw seemed to rely on testing and error trapping rather than just asking the system for a comprehensive list of what's allowed for the user.



>I'm not 100% certain, but I believe that approaches outlined in this thread should work.
>
>>Naomi,
>>
>>Do you know if there is a generalized way available within VFP (maybe a set of API calls that somebody has figured out?) that will return NTFS permissions for a specific file or folder for the user who is running the VFP app at the moment?
>>
>>Thanks.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform