Partager via


Adding Context Menu Items

[Support for Failover Cluster Administrator extension DLLs was removed in Windows Server 2008.]

When an administrator pulls up a context menu for the object you are extending, Failover Cluster Administrator calls your implementation of the IWEExtendContextMenu::AddContextMenuItems method. Your implementation should:

  1. Create the context menu items to be added to the context menu.
  2. Call the Failover Cluster Administrator information interfaces as needed. See Using the Information Interfaces.
  3. Call IWCContextMenuCallback::AddExtensionMenuItem for each item to be added. This causes the item to appear in the context menu seen by the administrator.

When an administrator selects a context menu item created by your extension, Failover Cluster Administrator calls your implementation of IWEInvokeCommand::InvokeCommand. Your implementation should perform the action you want to associate with the context menu item.