IObjectWithSelection interface (shobjidl_core.h)

Exposes methods that get or set selected items represented by a Shell item array.


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


The IObjectWithSelection interface has these methods.


Gets the Shell item array that contains the selected items.

Provides the Shell item array that specifies the items included in the selection.


When to Implement

This interface is implemented by verbs that implement IExecuteCommand. This allows objects to invoke the verb on the selection through IExecuteCommand::Execute.

When to Use

IObjectWithSelection is used by Windows Explorer to invoke a verb on the selected items. Do not call this interface directly.


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