System.IOUtils.TPathPrefixType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TPathPrefixType = (pptNoPrefix, pptExtended, pptExtendedUNC);

C++

enum class DECLSPEC_DENUM TPathPrefixType : unsigned char { pptNoPrefix, pptExtended, pptExtendedUNC };

Properties

Type Visibility Source Unit Parent
enum public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils System.IOUtils

Description

Enumerates the possible extended path prefix types.

TPathPrefixType enumerates the possible types of extended path types. An extended prefix looks like \\?\ or \\?\UNC\. The following are possible values of TPathPrefixType.



Value Meaning

pptNoPrefix

Path has no extended prefix.

pptExtended

Path has an extended prefix (\\?\).

pptExtendedUNC

Path has an extended UNC prefix (\\?\UNC\).



Paths prefixed with \\?\ or \\?\UNC\ are Windows-specific and can be of very big lengths and not restricted to 255 characters (MAX_PATH). It is a common case today to manage paths longer than 255 characters. Prefixing those with \\?\ solves the problem.

See Also