I'm trying to control concurrent access to a file in a Win32 application. The file is a SQLite database, and on Windows SQLite opens files via CreateFile() with FILE_SHARE_READ and FILE_SHARE_WRITE ...
A fundamental of file systems since their inception has been their locking mechanisms. These exist so that different users and applications working on the same file (or region of a file) ...
Is there a proper way to determine if a file is in use by another program in C#? I have a kludge right now (namely, rename the file to it's original name), but there must be a better way to determine ...