Click to See Complete Forum and Search --> : Enumerating open file handles by PID


edflux
December 3rd, 2006, 05:49 PM
Hi

I need to discover what processes are accessing an arbitary file as does the handle utility: http://www.microsoft.com/technet/sysinternals/utilities/handle.mspx

I seem to remember some simmilar code that does this kind of thing by mapping the kernal memory to get all allocated handles, but there must be a better method than this!

My app is .net based so i dont really want it to depend a dll that hacks the kernal memory to retrieve this info! Any suggestions?

Thanks