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.
HRESULT Initialize( LPCONSOLE lpConsole );
A pointer to the console IConsole interface.
This method can return one of these values.
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.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|