- clipz.zip
- Clipz.sln
- Clipz
- Core
- AppRestartRecovery
- Core.csproj
- Dialogs
- Common
- TaskDialogs
- Interop
- NetworkList
- PowerManagement
- Properties
- PropertySystem
- SafeHandles
- Libraries
- StructureMap.dll
- Shell
- Common
- CommonFileDialogs
- Controls
- Design
- ShellObjects.cd
- ShellThumbnailClassDiagram.cd
- DesktopWindowManager
- ExplorerBrowser
- Interop
- Common
- Dialogs
- ExplorerBrowser
- KnownFolders
- PropertySystem
- StockIcons
- Taskbar
- KnownFolders
- Properties
- PropertySystem
- Shell.csproj
- StockIcons
- Taskbar
|
//Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;
using MS.WindowsAPICodePack.Internal;
namespace Microsoft.WindowsAPICodePack.Shell
{
internal class ShellItemArray : IShellItemArray
{
List<IShellItem> shellItemsList = new List<IShellItem>();
internal ShellItemArray(IShellItem[] shellItems)
{
shellItemsList.AddRange(shellItems);
}
#region IShellItemArray Members
public HRESULT BindToHandler(IntPtr pbc, ref Guid rbhid, ref Guid riid, out IntPtr ppvOut)
{
throw new NotSupportedException();
}
public HRESULT GetPropertyStore(int Flags, ref Guid riid, out IntPtr ppv)
{
throw new NotSupportedException();
}
public HRESULT GetPropertyDescriptionList(ref PropertyKey keyType, ref Guid riid, out IntPtr ppv)
{
throw new NotSupportedException();
}
public HRESULT GetAttributes(ShellNativeMethods.SIATTRIBFLAGS dwAttribFlags, ShellNativeMethods.SFGAO sfgaoMask, out ShellNativeMethods.SFGAO psfgaoAttribs)
{
throw new NotSupportedException();
}
public HRESULT GetCount(out uint pdwNumItems)
{
pdwNumItems = (uint)shellItemsList.Count;
return HRESULT.S_OK;
}
public HRESULT GetItemAt(uint dwIndex, out IShellItem ppsi)
{
int index = (int)dwIndex;
if (index < shellItemsList.Count)
{
ppsi = shellItemsList[index];
return HRESULT.S_OK;
}
else
{
ppsi = null;
return HRESULT.E_FAIL;
}
}
public HRESULT EnumItems(out IntPtr ppenumShellItems)
{
throw new NotSupportedException();
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm the founder of PageLabs, a web-based performance and SEO optimization site.
Give your site a boost in performance, even take a free speed test!
http://www.pagelabs.com