Information générale
Catégorie:
Codage, syntaxe et commandes
This task is not at all easy in VFP. I did it once and it's quite difficult, even with my Pointers class or any equiv. utility. Although it's doable, I wouldn't recommend it because there are still some issues that cannot be handled properly in VFP. A C/C++ wrapper is much more appropriate.
Besides this, there are some bugs related to security on files/directories on WinNT 4.0 with no service pack. I mean: the OS is handling everything consistent (I couldn't find any security break), but what you'll find in the security attached to a file/directory may not be what you find in the docs. And this makes it impossible to be sure that what you're doing is ok (even in C++). There are also bugs in the docs for some security related functions...
I couldn't replicate the same problems on WinNT SP3 or 4. But the docs are still poor.
The method suggested by Mark is much more simpler and reliable (if applicable).
Vlad
>Could someone tell me what API call is used to get the user's rights for a particular directory. (ie. read/write) I'm sure that there is one but I don't know what it is.
>Thanx,
>Bill
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement