System.IOUtils.TPath.GetExtendedPrefix
Delphi
class function GetExtendedPrefix(const Path: string): TPathPrefixType; static;
C++
static TPathPrefixType __fastcall GetExtendedPrefix(const System::UnicodeString Path);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Returns the extended prefix type for a given path.
Call GetExtendedPrefix to obtain a TPathPrefixType specifying the extended prefix type for a given path.
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.
For example, in file I/O, the \\?\ tells the Windows APIs to disable all string parsing and to send the string that follows it to the file system. Therefore, you can exceed the MAX_PATH limits that are enforced by Windows APIs.
On POSIX, GetExtendedPrefix always returns TPathPrefixType.pptNoPrefix
.