MAX_FILES

This variable sets the maximum number of files that can be opened by the run-time system. The default value is 32. Keeping this value small conserves memory. Many operating systems limit the number of files that can be opened by a single process, so you may have to make some adjustments there too. The maximum value of MAX_FILES is 32767.