Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check user's rights
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01210145
Message ID:
01211232
Vues:
27
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.
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform