GetPathRoot

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:

Example