IWEInvokeCommand::InvokeCommand

The IWEInvokeCommand::InvokeCommand method runs commands associated with items added to Cluster Administrator context menus.

HRESULT InvokeCommand(
  ULONG nCommandID, 
  IUnknown *piData  
);
 

Parameters

nCommandID
[in] Identifier of the menu item containing the command to perform. The identifier represented by nCommandID is the identifier passed to the IWCContextMenuCallback::AddExtensionMenuItem method.
piData
[in] Pointer to an IUnknown interface implementation that can be used to obtain pointers to interfaces with information about the object associated with the command identified by nCommandID. When Cluster Administrator calls IUnknown::QueryInterface using the piData pointer, it should be able to retrieve a pointer to these interfaces:

IGetClusterUIInfo

IGetClusterDataInfo

IGetClusterObjectInfo

Depending on the type of object associated with the command, a Cluster Administrator extension should also provide a pointer to one of these interfaces:

IGetClusterNodeInfo, if a node is being extended.

IGetClusterGroupInfo, if a group is being extended.

IGetClusterResourceInfo, if a resource is being extended.

Return Values

NOERROR
The operation was successful.
E_FAIL
There was no error adding the context menu item.
E_NOTIMPL
The operation is not implemented for this data type.

If InvokeCommand is unsuccessful, it can also return an OLE-defined error value.

Remarks

Cluster Administrator calls IWEInvokeCommand::InvokeCommand to run a command added to a Cluster Administrator context menu.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in cluadmex.h.