directory locking

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

In our app we have a resource manager which used a temporariy directory in
the temp folder to store data while the application is runnning.

To preserve the integrity of our data we need to prevent the deletion of
this folder while the application is running.

How could I lock the directory?

I'm thinking of win32 call like LockFile/LockFileEx, but I'm not sure what
argument pass to these methods.

Any tips?
 
In our app we have a resource manager which used a temporariy
directory in the temp folder to store data while the application is
runnning.
To preserve the integrity of our data we need to prevent the
deletion of this folder while the application is running.

Keep the file(s) in this directory open. Windows won't allow them
to be deleted when they're open.

Nathan Mates
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

File Locking 1
Access denied fro GetShortPathName in Windows Vista 8
IE 7 (64-bit) Hijacks App 1
Windows Server What can Active Directory Do? 6
Access MS Access - Multi User Lock Issue 0
Any point to backing up prefetch files 3
Lock on directory 8
EvilGnome. 2

Back
Top