Contents Index Topic Contents | ||
Previous Topic: PathSearchAndQualify Next Topic: PathSetDlgItemPath |
PathSkipRoot
LPTSTR PathSkipRoot( LPCTSTR pszPath );Parses a path, ignoring the drive letter or UNC server/share path parts.
- Returns the address of the beginning of the subpath that follows the root (drive letter or UNC server/share).
- pszPath
- Address of the path to parse.
Example:
#include <windows.h> #include <iostream.h> #include "Shlwapi.h" void main( void ) { // Path to convert. char buffer_1[] = "C:\\path1\\path2"; char *lpStr1; lpStr1 = buffer_1; cout << "The path before is : " << lpStr1 << endl; cout << "The path after is : " << PathSkipRoot(lpStr1) << endl; } OUTPUT: ================== The path before is : C:\path1\path2 The path after is : path1\path2
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.