IExplorerCommandState interface

Exposes a single method that allows retrieval of the command state.


The IExplorerCommandState interface has these methods.

Method Description
IExplorerCommandState::GetState Gets the command state associated with a specified Shell item.


When to Implement

Implement this interface when you need to determine the command state dynamically (for instance, based on an item's properties). This interface provides the same functionality as IExplorerCommand::GetState, without the overhead of that interface's additional methods. Implement IExplorerCommandState when you only need to compute the command state.

When to Use

Do not call the method of IExplorerCommandState directly. Windows Explorer calls your IExplorerCommandState::GetState implementation when the user wants to perform an action on the item.


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)

See Also