Is it possible to determine for a certain process (id), which files are associated to it (i.e. the executable file as well as all files that are currently accessed by the process)?
I have to use WMI unless there is no other option to avoid NtQuerySystemInformation. I already have a piece of code which can determine for a certain file, which processes are currently using it. But I need an efficient way for the opposite direction.
Thank you very much.