PathGetShortPath function (shlobj_core.h)

[PathGetShortPath is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Retrieves the short path form of a specified input path.

Syntax

void PathGetShortPath(
  [in, out] PWSTR pszLongPath
);

Parameters

[in, out] pszLongPath

Type: PWSTR

A pointer to a null-terminated, Unicode string that contains the long path. When the function returns, it contains the equivalent short path.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)