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
 
Back
Top