Reputation: 99
Does the Win32 API have an equivalent to POSIX fpathconf(), for example to figure out what the maximum length of a file name can be for a specific mounted filesystem? Or whether the filesystem for a given path supports symlinks?
Upvotes: 2
Views: 81
Reputation: 595782
Look at GetVolumeInformation()
:
Retrieves information about the file system and volume associated with the specified root directory.
In this case, the lpMaximumComponentLength
and lpFileSystemFlags
parameters can be used to help you determine what you are looking for.
Also see Naming Files, Paths, and Namespaces, in particular the sections on Paths and Maximum Path Length Limitation
Upvotes: 4