GetPathRoot
main
|
FarStandardFunctions
The
FSF.GetPathRoot
function is used to get the root directory from a given path.
void WINAPI GetPathRoot( const char *Path, char *Root );
Parameters
Path
The path from which you want to get the root directory.
Root
Buffer that receives the root directory.
Return value
None.
Remarks
Root
must be large enough to hold the resulting string:
Local drives - driver letter, colon, slash -
C:\
Reparse point (on NTFS 5 filesystem - Windows 2000) - something like
\\?\Volume{be877ec2-afd6-11d4-b5e3-806d6172696f}\
or
\??\D:\
UNC-path - host and share -
\\host\share\
Example