December 26, 2007

How to get the maximum length of full path in windows?

_MAX_DIR = Maximum length of directory component
_MAX_DRIVE = Maximum length of drive component
_MAX_EXT = Maximum length of extension component
_MAX_FNAME = Maximum length of filename component
_MAX_PATH = Maximum length of full path.

The sum of the fields should not exceed _MAX_PATH.
(The sizes include space for 0-terminator.)