IRelatedItem interface (shobjidl_core.h)

Exposes methods that derive related items with specific relationships.

Inheritance

The IRelatedItem interface inherits from the IUnknown interface. IRelatedItem also has these types of members:

Methods

The IRelatedItem interface has these methods.

 
IRelatedItem::GetItem

Gets the IShellItem that is related to this item.
IRelatedItem::GetItemIDList

Gets the pointer to an item identifier list (PIDL) for the item that is related.

Remarks

Do not implement this interface directly. This is a base interface (other interfaces derive from it) for a set of interfaces that describes the relationship between two items, (For example IDisplayItem). Do not query for this interface directly, for example, using QueryInterface or IShellFolder::BindToObject. Instead, use the derived interfaces.

An example derivation is the creation of an identity name handler. For more information, see IIdentityName. Other interfaces that may derive from this interface include ICurrentItem, and ITransferMediumItem.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See also

IShellFolder::BindToObject

IShellItem::BindToHandler