Retrieves a pointer to the ITEMIDLIST structure (PIDL) of a special folder
#include <WinAPIShellEx.au3>
_WinAPI_ShellGetSpecialFolderLocation ( $iCSIDL )
$iCSIDL | The CSIDL ($CSIDL_*) that identifies the folder of interest. |
Success: | The PIDL specifying the folder's location relative to the root of the namespace (the desktop). |
Failure: | 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
To free the returned PIDL, call the _WinAPI_CoTaskMemFree() function.
Search SHGetSpecialFolderLocation in MSDN Library.