Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exclusive access in one folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00964719
Message ID:
00964983
Vues:
7
>>I want do this:
>>
>>run the Application,
>>get the exclusive access to a directory reserved to the processId only.
>>
>>In other words, until application run,
>>only the application can use the files of the folder.
>>
>>It is like to open a file in rw exclusive mode.
>>
>>Exists a API for declare this ?
>>
>>Possible in WXP with VFP?
>>
>>Possible in WinFS?
>>
>>thanks
>>
>
>Fabio,
>
>Rights are granted under Win32 at the user level, not the application level.
>
>One solution might be to limit the access to computer administrators only. Then you could set up a folder that only adminstrators could access. You might search the MSDN Library on "RunAs" for a potential solution.
>
>The downside of this is if the user has adminstrative rights, then he/she has access to the folder.

Hi George,

I known "RunAs", but i use Kerberos for access to SQL Server,
then the process where the ODBC run must to have the user Rights.

Yes, i can split the process into two piece , but this me seems excessive,
and this not solve the issue:
I want to be guaranteed that during the life of the process,
no other can put the hands within to the folder.


This does not have to that to make with Application's Rights are granted,
probably WinFX does not implement this concept.

My demand is a lot, the much simplest one.

One API:
BOOL LockDirectory( LPCTSTR lpPathName, BOOL bLock);
Are we still to the age of the stone in the OS ?

I hope that WinFX implement this, but I have many doubts.

Thanks
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform