SHGetPathFromIDList


Converts an item identifier list to a file system path.

BOOL SHGetPathFromIDList(

    LPCITEMIDLIST pidl,

    LPSTR pszPath

);

Parameters

pidl
Address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).
pszPath
Address of a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size.

Return Values

Returns TRUE if successful, or FALSE otherwise.

Remarks

If the location specified by the pidl parameter is not part of the file system, this function will fail.

Requirements

  Version 4.00 and later of Shell32.dll

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in shlobj.h.
  Import Library: shell32.lib.