BExplorer.Shell.Interop.ShellNotifications.GetPidlFromFolderID C# (CSharp) Method

GetPidlFromFolderID() public static method

Get the Pidl from a special folder ID
public static GetPidlFromFolderID ( IntPtr hWnd, CSIDL Id ) : IntPtr
hWnd System.IntPtr Handle of the window
Id CSIDL ID of the special folder
return System.IntPtr
        public static IntPtr GetPidlFromFolderID(IntPtr hWnd, CSIDL Id)
        {
            IntPtr pIdl = IntPtr.Zero;
            SHGetFolderLocationReturnValues res = (SHGetFolderLocationReturnValues)
                SHGetSpecialFolderLocation(
                hWnd,
                Id,
                out pIdl);
            return (pIdl);
        }