IShellItem interface
Applies to: desktop apps only
Exposes methods that retrieve information about a Shell item. IShellItem and IShellItem2 are the preferred representations of items in any new code.
Members
The IShellItem interface inherits from the IUnknown interface. IShellItem also has these types of members:
Methods
The IShellItem interface has these methods.
| Method | Description |
|---|---|
| BindToHandler |
Binds to a handler for an item as specified by the handler ID value (BHID). |
| Compare |
Compares two IShellItem objects. |
| GetAttributes |
Gets a requested set of attributes of the IShellItem object. |
| GetDisplayName |
Gets the display name of the IShellItem object. |
| GetParent |
Gets the parent of an IShellItem object. |
Remarks
When to Implement
Third parties do not implement this interface; only use the implementation provided with the system.
Requirements
|
Minimum supported client | Windows XP with SP1 |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012
Applications are encouraged to use IShellItem and IShellItem2 instead of IShellFolder and IDLists as the way to reason about shell data.
Below is a list of other functions that construct shell items from other currency, see those for the minimum platform that they require.
SHCreateShellItem
SHCreateItemFromIDList
SHCreateItemFromParsingName
SHCreateItemWithParent
SHCreateItemFromRelativeName
SHCreateItemInKnownFolder
SHGetItemFromObject
- 7/23/2009
- Chris_Guzak
A shell item represents an absolute IDList in the bound state; that is it holds the data source instance object and child IDlist as members to perform its work.
Shellitem also implements marshal by value to enable the efficient use of these objects as interchange currency between COM apartments.
- 3/25/2009
- Chris_Guzak
this object can be created using SHCreateItemFromIDList() and SHCreateItemFromParsingName() or CoCreate of CLSID_ShellItem.
- 3/25/2009
- Chris_Guzak