SHSimpleIDListFromPath function
Deprecated. Returns a pointer to an ITEMIDLIST structure when passed a path.
Syntax
PIDLIST_ABSOLUTE SHSimpleIDListFromPath( _In_ PCWSTR pszPath );
Parameters
- pszPath [in]
-
Type: PCWSTR
A pointer to a null-terminated string that contains the path to be converted to a PIDL.
Return value
Type: PIDLIST_ABSOLUTE
Returns a pointer to an ITEMIDLIST structure if successful, or NULL otherwise.
Remarks
Prior to Windows 7, this function was declared in Shlobj.h. In Windows 7 and later versions, it is declared in Shobjidl.h.
An alternative to this function is as follows:
- Call SHGetDesktopFolder to obtain IShellFolder for the desktop folder.
- Get the IShellFolder's bind context (IBindCtx).
- Call IShellFolder::ParseDisplayName with the IBindCtx and the path.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|