Get username of opened file
- by Mike L.
Is there a way to learn the username of the user that has a file open?
I am developing a program that will be a desktop client for many users. The application will open some files and I'd like to allow many users to open the files at the same time, but only allow the first user to have write privileges. What I want is to be able to tell the other users who has write access to a file.
Is that something that can be learned by an application? (I am developing in VS 2008).