I need to create an event when a file is being closed by another application.
Unfortunately, ReadDirectoryChangesW does not report a close event. Perhaps I can interrogate (using TTimer) any file that was specified by ReadDirectoryChangesW until it is closed (using CreateFile to detect it).
However, I would prefer this event-driven solution.
Is there a way to intercept system calls and detect all file close events? I just want to know the path and name of any file that has just been closed.
source
share