IInitializeCommand interface (shobjidl_core.h)
Exposes a single method used to initialize objects that implement IExplorerCommandState, IExecuteCommand or IDropTarget with the application-specified command name and its registered properties.
Inheritance
The IInitializeCommand interface inherits from the IUnknown interface. IInitializeCommand also has these types of members:
Methods
The IInitializeCommand interface has these methods.
IInitializeCommand::Initialize Initialize objects that share an implementation of IExplorerCommandState, IExecuteCommand or IDropTarget with the application-specified command name and its registered properties. |
Remarks
When to Implement
Implement IInitializeCommand in the following situations.- Implement this interface to differentiate between related commands that share implementations of IExplorerCommandState, IDropTarget or IExecuteCommand. Differentiation is made through the command name passed in IInitializeCommand::Initialize. Commands can also use Initialize to pass a specific property bag for the command, using properties the command has placed in the registry.
When to Use
Do not call the method of IInitializeCommand directly. Windows Explorer calls this method when a verb object that implements this interface is invoked.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) |