IComponent2 interface

The IComponent2 interface, implemented by snap-ins, is introduced in MMC 2.0 and supersedes the IComponent interface.

Snap-ins written for MMC 2.0 and later should implement IComponent2, as the IComponent2::GetResultViewType2 and IComponent2::RestoreResultView methods provide a way to precisely restoring a result view.

Additionally, the IComponent2::QueryDispatch method provides an IDispatch interface to the View object for use with the MMC 2.0 Automation Object Model.

Members

The IComponent2 interface inherits from the IUnknown interface. IComponent2 also has these types of members:

Methods

The IComponent2 interface has these methods.

MethodDescription
CompareObjects

Enables a snap-in to compare two data objects acquired through QueryDataObject. Be aware that data objects can be acquired from two different instances of IComponent.

Implemented as IComponent::CompareObjects.

Destroy

Releases all references to the console.

Implemented as IComponent::Destroy.

GetDisplayInfo

Retrieves display information about an item in the result pane.

Implemented as IComponent::GetDisplayInfo.

GetResultViewType

Determines the result pane view.

Implemented as IComponent::GetResultViewType.

GetResultViewType2

Informs MMC of the result view type and supports precise view restoration. Supersedes IComponent::GetResultViewType.

Initialize

Provides an entry point to the console.

Implemented as IComponent::Initialize.

Notify

Called by the console to notify the snap-in of actions taken by a user. Implemented as IComponent::Notify.

QueryDataObject

Returns a data object that can be used to retrieve context information for the specified cookie.

Implemented as IComponent::QueryDataObject.

QueryDispatch

Returns an IDispatch interface for the specified cookie; MMC will expose the IDispatch interface through the MMC 2.0 Automation Object Model.

RestoreResultView

Restores the result view (supersedes MMCN_RESTORE_VIEW notification); this method allows snap-in-specific details to be restored to the result view.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

Restoring Result Views

 

 

Show: