Group: Shell Lightweight Utility APIs -- Path Functions - Library: shell32
void PathGetShortPath(
LPWSTR pszLongPath
);
DECLARE PathGetShortPath IN shell32;
STRING @pszLongPath
pszLongPath [in, out] A NULL-terminated Unicode string that contains the long path. When the function returns it contains the equivalent short path.
No return value.
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.