razor111
asked on
Detecting file access
I want to create a program which detect when a file is opened, closed, seeked. For example take a look at the application File Monitor.
So my program must listen over the file system and detect when some program open file. Also need to see the Handle of this application!
Any ideas?
So my program must listen over the file system and detect when some program open file. Also need to see the Handle of this application!
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For the record, WaitForSingleObject can wait for changes in directories. Haven't tried it myself, but could be useful if you really wan't to code the thing yourself.