Group: Shell Lightweight Utility APIs -- Path Functions - Library: shlwapi
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
BOOL PathIsRoot(
LPCTSTR pPath
);
DECLARE INTEGER PathIsRoot IN shlwapi;
STRING pszPath
pPath [in] Pointer to a null-terminated string of maximum length MAX_PATH that contains the path to be validated.
Returns TRUE if the specified path is a root, or FALSE otherwise.