Discussion Locked

File locks?

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi all! Where does Windows NT 4.0 keep its list of files that are open and locked? I am trying to develop an app that monitors a file's status (whether it is open or closed) so that it can call another app when the file is closed by a previous app. Any ideas?

1 reply

by peter ritchie

As far as I know Windows doest not keep a public list of "locked" files.

What you can do is monitor changes to the file through the file monitoring functions FindFirstChangeNotification, FindNextChangeNotification, and FindCloseChangeNotification.

This discussion is closed to new replies.