 |
PathGetShortPath ..msdn Add comment W32 Constants Translate this page |
 |
 |
Retrieves the short path form of a specified input path.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
void PathGetShortPath(
LPWSTR pszLongPath
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE PathGetShortPath IN shell32;
STRING @pszLongPath
|
 |
 |
 |
| Parameters: |
 |
pszLongPath
[in, out] A NULL-terminated Unicode string that contains the long path. When the function returns it contains the equivalent short path. |
 |
 |
| Return value: |
 |
| No return value. |
 |
 |
| Usage: |
 |
cPath = STRCONV(_vfp.ServerName,5)
= PathGetShortPath(@cPath)
? STRCONV(SUBSTR(cPath, 1, AT(CHR(0)+CHR(0), m.cPath)),6)
|
 |
 |
| My comment: |
 |
Minimum OS: Windows 2000
Note that same parameter is used for both input and output. The short name most of the times takes less space than the buffer allocates, so the trailing part has to be cut off.
See also: GetLongPathName, GetShortPathName. |
 |
 |
| Word Index links for the PathGetShortPath : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2006-03-09 10:17:09 | | Modified: | 2007-06-11 16:25:42 | Visited in last 7 days: 13 |