Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to list all files opened by a specific process (including remote files, on virtual directories).
I've noticed that there no WMI services to do that, but from my understanding this is something that has to be monitored by the os.

Any ideas?

Thanks,
Amir
Posted

Hi,

See if this article helps: Listing Used Files[^]
 
Share this answer
 
Thanks for the quick reply.
I did look into that article, however, the code there is a little obsolete. It uses NtQuerySystemInformation() which msdn warns of using (for latter compatibility). It suggests using GetSystemInfo() instead, but I really can't find HOW to use GetSystemInfo().
In addition, this article discusses ALL the open file handles, which is an overkill.

Thanks,
Amir
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900