PathCchSkipRoot function
Retrieves a pointer to the first character in a path following the drive letter or Universal Naming Convention (UNC) server/share path elements.
This function differs from PathSkipRoot in that it accepts paths with "\\", "\\?\" and "\\?\UNC\" prefixes.
Syntax
HRESULT PathCchSkipRoot( _In_ PCWSTR pszPath, _Out_ PCWSTR *ppszRootEnd );
Parameters
- pszPath [in]
-
A pointer to the path string.
- ppszRootEnd [out]
-
The address of a pointer that, when this function returns successfully, points to the first character in a path following the drive letter or UNC server/share path elements. If the path consists of only a root, this value will point to the string's terminating null character.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|