Maximum number of open file streams

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I assume that there is some maximum limit to the number of open file
streams (open files) in .NET for an application. What is the limit, can I
obtain this limit programmatically?

Thanks
 
Hi,
Welcome to MSDN Newsgroup!

Based on my knowledge, we could use _setmaxstdio/ _getmaxstdio API to set
and get the number of simultaneously open files permitted at the stream I/O
level.
Most C run-time function has the equivalent functions in the .Net
Framework. The following article shows the relation between them,
Title: Run-Time Routines and .NET Framework Equivalents
URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/h
tml/vclrfrun-timeroutinesnetframeworkequivalents.asp

If the function that you need is not listed in the above article (e.g.
_setmaxstdio/ _getmaxstdio), then you can use PInvoke to call the standard
C function.

I hope the above information is useful for you. If you have any questions,
please feel free to join the community and we are here to support you at
your convenience. Thanks for your understanding!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
 
Back
Top