From fb4f8c7108f43d2341ba299424646c4963b21188 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 26 May 2022 17:33:15 -0500 Subject: Replace PathIsAbsolute with PathIsRooted and add PathIsFullyQualified. --- src/libs/dutil/WixToolset.DUtil/inc/pathutil.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/libs/dutil/WixToolset.DUtil/inc/pathutil.h') diff --git a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h index 44d36568..602b4a80 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/pathutil.h @@ -166,10 +166,23 @@ DAPI_(HRESULT) PathGetKnownFolder( ); /******************************************************************* - PathIsAbsolute - returns true if the path is absolute; false - otherwise. + PathIsFullyQualified - returns true if the path is fully qualified; false otherwise. + Note that some rooted paths like C:dir are not fully qualified. + For example, these are all fully qualified: C:\dir, \\server\share, \\?\C:\dir. + For example, these are not fully qualified: C:dir, C:, \dir, dir, dir\subdir. *******************************************************************/ -DAPI_(BOOL) PathIsAbsolute( +DAPI_(BOOL) PathIsFullyQualified( + __in_z LPCWSTR wzPath, + __out_opt BOOL* pfHasLongPathPrefix + ); + +/******************************************************************* + PathIsRooted - returns true if the path is rooted; false otherwise. + Note that some rooted paths like C:dir are not fully qualified. + For example, these are all rooted: C:\dir, C:dir, C:, \dir, \\server\share, \\?\C:\dir. + For example, these are not rooted: dir, dir\subdir. +*******************************************************************/ +DAPI_(BOOL) PathIsRooted( __in_z LPCWSTR wzPath ); -- cgit v1.2.3-55-g6feb