packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/KnownFolders/KnownFolderHelper.cs
/// <summary>
/// Returns the native known folder (IKnownFolderNative) given a PID list
/// </summary>
/// <param name="pidl"></param>
/// <returns></returns>
Returns the native known folder (IKnownFolderNative) given a PID list
Returns the native known folder ( IKnownFolderNative ) given a PID list
internal static IKnownFolderNative FromPIDL(IntPtr pidl)
        {            
            KnownFolderManagerClass knownFolderManager = new KnownFolderManagerClass();
            IKnownFolderNative knownFolder;
            HResult hr = knownFolderManager.FindFolderFromIDList(pidl, out knownFolder);
            return (hr == HResult.Ok) ? knownFolder : null;
        }
internal static IKnownFolderNative FromPIDL ( IntPtr pidl ) { KnownFolderManagerClass knownFolderManager = new KnownFolderManagerClass ( ) ; IKnownFolderNative knownFolder ; HResult hr = knownFolderManager . FindFolderFromIDList ( pidl , out knownFolder ) ; return ( hr == HResult . Ok ) ? knownFolder : null ; }
Returns the native known folder (IKnownFolderNative) given a PID list
Returns the native known folder ( IKnownFolderNative ) given a PID list
None
pidl
IntPtr
None