IComponent::Initialize method (mmc.h)

The IComponent::Initialize method provides an entry point to the console. At this point, the snap-in should set up the toolbar. If the snap-in uses the default list view it should also set up the list view's headers and add images to be used in the result pane.

Syntax

HRESULT Initialize(
  LPCONSOLE lpConsole
);

Parameters

lpConsole

A pointer to the console IConsole interface.

Return value

This method can return one of these values.

Remarks

IComponent::Initialize is called when a snap-in is being created. The pointer to IConsole that is passed in is used to make QueryInterface calls to the console for interfaces such as IResultData. You can also call QueryInterface on the IConsole pointer to get an IConsole2 interface pointer.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h

See also

IComponent

IComponent::Destroy

IConsole2

IDataObject