![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | directory locking 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? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: directory locking In article <effPnlCyHHA.536@TK2MSFTNGP06.phx.gbl>, Lloyd Dupont <net.galador@ld> wrote: >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 -- <*> Nathan Mates - personal webpage http://www.visi.com/~nathan/ # Programmer at Pandemic Studios -- http://www.pandemicstudios.com/ # NOT speaking for Pandemic Studios. "Care not what the neighbors # think. What are the facts, and to how many decimal places?" -R.A. Heinlein |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Setting up a directory and moving a file into that directory from | Vista General | |||
| Setting up a directory and moving a file into that directory from | Vista General | |||
| how do I keep powershells current directory and dotnets current directory in sync | PowerShell | |||
| Temp Directory acts like media directory | Vista General | |||
| Locking Up | Vista General | |||