Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.12 KB

PathGetShortPath.md

File metadata and controls

49 lines (31 loc) · 1.12 KB

Home

Function name : PathGetShortPath

Group: Shell Lightweight Utility APIs -- Path Functions - Library: shell32


Retrieves the short path form of a specified input path.


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.


Comments:

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.