D
DoB
Hi,
I would like to get the list of full paths of all files that are currently
opened by any process in the system.
Is this possible?
In short:
my program moves a bunch of directories and I want to warn the user BEFORE
he/she tries to start the whole process if any directory cannot be moved.
The ideal situation is to tell the user the name of the process that
prevents the move so that the user can close it.
I suspect that I should search for open handles. I know I can enumerate
processes and get the number of handles opened by each process. But how to
enumerate those handles and gather more informations by them?
Regards,
DoB
I would like to get the list of full paths of all files that are currently
opened by any process in the system.
Is this possible?
In short:
my program moves a bunch of directories and I want to warn the user BEFORE
he/she tries to start the whole process if any directory cannot be moved.
The ideal situation is to tell the user the name of the process that
prevents the move so that the user can close it.
I suspect that I should search for open handles. I know I can enumerate
processes and get the number of handles opened by each process. But how to
enumerate those handles and gather more informations by them?
Regards,
DoB