Hi, is it possible to check if a file in a specific directory is accessed by a process X and get the process id (in c++ or better c#) ?
I think there must be a moment, when the file is accessed by a process before it is opened by it. (for example anti-virus tools are using this too)
Example:
- I double-click a txt file
- Before notepad is automatically opened, the c++ or c# program should get the process id of notepad, before it is opened.
Is this possible? Someone told me, it could be done with low-level-hooks but I haven't found an "file access hook".
Thanks.