Working with IComponent
Among the IComponent methods, the Initialize method provides an entry point for the snap-in by allowing QueryInterface calls to IConsole. The console calls the Notify method to notify the snap-in component that an event has occurred as a result of a user action. The Destroy method releases all interfaces to the console such as IConsole.
The QueryDataObject method returns a pointer to an IDataObject that provides further information about the item specified by the cookie parameter. The type parameter indicates the context in which the data object is required. A value of CCT_SCOPE or CCT_SNAPIN_MANAGER indicates that the data object is for a scope item. A value of CCT_SNAPIN_MANAGER further indicates that the Snap-in Manager has requested the data object. A value of CCT_RESULT indicates that the cookie is that of a result item.
The GetResultViewType method determines the type of view in the result pane (for example, default list view, ActiveX® control (OCX), URL path). The GetDisplayInfo method retrieves display information for a result item. The CompareObjects method provides a way for a snap-in component to compare two result items.
Related topics