Display processes that access a folder.
Posted
by Brendan Salt
on Stack Overflow
See other posts from Stack Overflow
or by Brendan Salt
Published on 2010-04-13T17:10:28Z
Indexed on
2010/04/13
17:13 UTC
Read the original article
Hit count: 202
I am trying to write a simple program, preferably in C, that will watch a given directory. Whenever a process accesses that directory, I just want to print out the name of that process. It seems simple, but I am coming up short for solutions on MSDN. Does anyone know which library calls I will need for this, or any helpful advice? I have considered repeatedly querying for what processes have handles on the given directory and just watching for additions to that list.This approach just seems very intensive and I am hoping there is an easier way. Thanks.
© Stack Overflow or respective owner