How do Antiviruses such as AVG detect files accessed by specific programs such as explorer.exe?
How can this monitoring of which process accessing which files be done in VB.NET?
How do Antiviruses such as AVG detect files accessed by specific programs such as explorer.exe?
How can this monitoring of which process accessing which files be done in VB.NET?
Yes, FileSystemWatcher
springs to mind.
With further API calls, you could theoretically write your own AV tool and hook into all file access. But this probably only deasible with C/C++.
You could turn on File System Auditing and use VB.Net to parse the torrent of events in the Audit Event Log.