IExplorerCommandState interface (shobjidl_core.h)
Exposes a single method that allows retrieval of the command state.
Inheritance
The IExplorerCommandState interface inherits from the IUnknown interface. IExplorerCommandState also has these types of members:
Methods
The IExplorerCommandState interface has these methods.
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
Requirement | Value |
---|---|
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) |