Partager via


SHGetPathFromIDList (Compact 2013)

3/28/2014

This function converts an item identifier list to a file system path.

Syntax

WINSHELLAPI BOOL WINAPI SHGetPathFromIDList( 
  LPCITEMIDLIST pidl, 
  LPSTR pszPath 
);

Parameters

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

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

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

Requirements

Header

shellapi.h

Library

ceshell.lib

See Also

Reference

Shell Functions