shoulianyu
shoulianyu

Reputation: 21

detect file handle conflict in windows

Operations like deleting an opened file cause a file handle conflict. If I need to detect such file handle conflicts, is the filter driver(or minifilter drivers) the only option?

Upvotes: 2

Views: 209

Answers (1)

MJZ
MJZ

Reputation: 1082

That I think you're asking for is: I have a daemon that has opened a file. When another process wants to get access to the file, I want the daemon to be notified and allow him to close the file, if possible, to allow the other process to continue. This requires the daemon to make use of "oplocks". See the MSDN documentation on oplocks.

Upvotes: 1

Related Questions