G
Guest
The short question I have here is how would one enumerate file handles for a
given process in C#?
I know p/invoke is needed. Sysinternals uses NtQuerySystemInformation and
NtQueryObject. However, my knowledge of how to uses these are pretty limited
and to save myself some time of ramping up on them I was wondering if someone
already knew how to do this in C#? Or can point me to some sample code on
doing this would be great.
I have even found some code but it doesn't work correctly. It displays file
handles but only for the executing process (the application the code is
running in, i.e. my project) which is not the desired results.
given process in C#?
I know p/invoke is needed. Sysinternals uses NtQuerySystemInformation and
NtQueryObject. However, my knowledge of how to uses these are pretty limited
and to save myself some time of ramping up on them I was wondering if someone
already knew how to do this in C#? Or can point me to some sample code on
doing this would be great.
I have even found some code but it doesn't work correctly. It displays file
handles but only for the executing process (the application the code is
running in, i.e. my project) which is not the desired results.