- Timestamp:
- Jan 31, 2000, 11:51:28 PM (26 years ago)
- Location:
- trunk/src/shlwapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shlwapi/shlwapi.cpp
r2259 r2585 1 /* $Id: shlwapi.cpp,v 1. 3 1999-12-30 00:24:29phaller Exp $ */1 /* $Id: shlwapi.cpp,v 1.4 2000-01-31 22:50:51 phaller Exp $ */ 2 2 3 3 /* … … 162 162 } 163 163 164 165 /***************************************************************************** 166 * Name : LPSTR PathSkipRootA 167 * Purpose : Parses a path, ignoring the drive letter or UNC server/share path parts. 168 * Parameters: LPCSTR pszPath 169 * Variables : 170 * Result : unknown 171 * Remark : SHLWAPI.PathSkipRootA 172 * Status : UNTESTED 173 * 174 * Author : Patrick Haller [Mon, 2000/01/31 23:02] 175 *****************************************************************************/ 176 177 ODINFUNCTION1(LPSTR, PathSkipRootA, LPCSTR, pszPath) 178 { 179 // check if "driveletter:\" 180 if (pszPath[1] == ':') 181 return (LPSTR)(pszPath + 2); 182 183 // check if UNC-style path 184 if ( (pszPath[0] == '\\') && 185 (pszPath[1] == '\\') ) 186 { 187 LPSTR pszTemp = strchr(pszPath + 2, '\\'); 188 if (NULL != pszTemp) 189 // return root part, skip server/share 190 return (LPSTR)pszTemp++; 191 else 192 // UNC syntax validation, return pszPath 193 return (LPSTR)pszTemp; 194 } 195 196 // else ... 197 return (LPSTR)pszPath; 198 } 199 200 201 /***************************************************************************** 202 * Name : LPWSTR PathSkipRootW 203 * Purpose : Parses a path, ignoring the drive letter or UNC server/share path parts. 204 * Parameters: LPCWSTR pszPath 205 * Variables : 206 * Result : unknown 207 * Remark : SHLWAPI.PathSkipRootW 208 * Status : UNTESTED 209 * 210 * Author : Patrick Haller [Mon, 2000/01/31 23:02] 211 *****************************************************************************/ 212 213 ODINFUNCTION1(LPWSTR, PathSkipRootW, LPCWSTR, pszPath) 214 { 215 dprintf(("not implemented")); 216 217 return (LPWSTR)pszPath; 218 } -
trunk/src/shlwapi/shlwapi.def
r2259 r2585 1 ; $Id: shlwapi.def,v 1. 6 1999-12-30 00:24:30phaller Exp $1 ; $Id: shlwapi.def,v 1.7 2000-01-31 22:50:51 phaller Exp $ 2 2 3 3 LIBRARY SHLWAPI INITINSTANCE TERMINSTANCE … … 462 462 PathSetDlgItemPathA = _PathSetDlgItemPathA@12 @255 463 463 PathSetDlgItemPathW = _PathSetDlgItemPathW@12 @256 464 PathSkipRootA = _PathSkipRootA@4 @257 465 PathSkipRootW = _PathSkipRootW@4 @258 466 464 467 PathUnquoteSpacesA = _PathUnquoteSpacesA@4 @265 465 468 PathUnquoteSpacesW = _PathUnquoteSpacesW@4 @266
Note:
See TracChangeset
for help on using the changeset viewer.