delphi package - easy access to shell apis
- Posts: 1
- Joined: Tue Aug 29, 2006 7:50 pm
How can I determine what program/process created a file, after a event has been fired? i.e after the modified, created, rename, etc events.
- Site Admin
- Posts: 10339
- Joined: Sun Mar 21, 2004 5:25 pm
That's not really possible in any easy way.
What you could do is to enumerate all open file handles of all processes to check which process has a handle open to the file you're interested in. This would be a VERY brute force approach, though, and I don't recommend to use this, unless you absolutely ultimately *must* know it.