Get count of open filehandles?

  • Thread starter Thread starter Stacy Friedman
  • Start date Start date
S

Stacy Friedman

Hi,

Is there a way, easy or not, to retrieve the system's count of open
filehandles for a given file? I'm trying to do some resource
management, preferably in C#, but I'll use the Win32 API if I must. I
looked at System.IO.FileInfo and related System.IO.* classes, but I
couldn't find the right information. Is this information accessible?

Thanks for any assistance.

Stacy
 
Hi Stacy,

yes there are some ways, and a developer at our company did this, but i
didnt
looked at the applications code...sorry. But i think he used Windows API
Functions like these:

OpenFile
CreateFile
GetFileInformationByHandle (this one seems to be usefull)


Best Regards

Kerem Gümrükcü
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top