IComponent

IComponent interface

The IComponent interface enables MMC to communicate with snap-ins. Similar to the IComponentData interface, IComponent is typically implemented at the view level and is closely associated with items being displayed in the result pane.

When to implement

Implement the IComponent interface in your in-process server DLL to communicate with the console, which displays the result pane and enumerates the items it contains.

All snap-ins that add result items to the namespace implement this interface. They should also implement IComponentData.

When to use

IComponent enumerates result items. It also provides display information for scope items when they appear in the result pane.

Extension snap-ins that do not extend the namespace, but extend other features like context menus, toolbars, and so on, need not implement IComponent.

Members

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

Methods

The IComponent 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.

Destroy

Releases all references to the console.

GetDisplayInfo

Retrieves display information about an item in the result pane.

GetResultViewType

Determines the result pane view.

Initialize

Provides an entry point to the console.

Notify

Called by the console to notify the snap-in of actions taken by a user.

QueryDataObject

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

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

 

 

Show:
© 2016 Microsoft