Share via


CShellManager::ItemFromPath

Retrieves the pointer to an item identifier list (PIDL) from the item identified by a string path.

HRESULT ItemFromPath(
   LPCTSTR lpszPath,
   LPITEMIDLIST& pidl 
);

Parameters

  • [in] lpszPath
    A string that specifies the path for the item.

  • [out] pidl
    A reference to a PIDL. The method uses this PIDL to store the pointer to its return value.

Return Value

Returns NOERROR if successful; an OLE-defined error value.

Requirements

Header: afxshellmanager.h

See Also

Reference

CShellManager Class

Hierarchy Chart