hi,
how i can get all current files openned by each running process using c#?
Printable View
hi,
how i can get all current files openned by each running process using c#?
I think this is not possible outside device drivers, because of the rights one needs for that. See these:
http://www.microsoft.com/communities...=en-us&m=1&p=1
http://www.nirsoft.net/utils/opened_files_view.html
Quote:
How does it work ?
OpenedFilesView uses the NtQuerySystemInformation API to enumerate all handles in the system. After filtering non-file handles, it uses a temporary device driver - NirSoftOpenedFilesDriver.sys for reading the information about each handle from the kernel memory. This device driver is automatically unloaded from the system when you exit from OpenedFilesView utility.