IExplorerCommandState interface

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

Methods

The IExplorerCommandState interface has these methods.

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

Remarks

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.

Requirements

   
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

IExplorerCommand::GetState