IsUNCPath function
Indicates if the specified path uses Universal Naming Convention (UNC).
Declaration
function IsUNCPath(const Path: string): BooleanArguments
Path | Path examined in the function. |
Function result
True when the path contains UNC notation.Description
IsUNCPath is a
Boolean function which indicates is the
specified path uses Universal Naming Convention (UNC).
The implementation of IsUNCPath is platform- and/or OS-specific. For the Windows platform, IsUNCPath checks Path to see if it begins with the double backslash notation used for a UNC path. For example:
\\C:\directory\ \\?\C:\directory\ \\?\UNC\volume\directory\
For UNIX-like environments, as well as the Amiga platform, the return value is always False. UNC paths are not used on those platforms.
Use ExtractUNCVolume to get host and path information from a file name expressed using UNC notation.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
