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.
The IComponent interface inherits from the IUnknown interface. IComponent also has these types of members:
The IComponent interface has these methods.
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.
Releases all references to the console.
Retrieves display information about an item in the result pane.
Determines the result pane view.
Provides an entry point to the console.
Called by the console to notify the snap-in of actions taken by a user.
Returns a data object that can be used to retrieve context information for the specified cookie.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|