IComponentData::Initialize method (mmc.h)

The IComponentData::Initialize method provides an entry point to the console.

Syntax

HRESULT Initialize(
  [in] LPUNKNOWN pUnknown
);

Parameters

[in] pUnknown

A pointer to the console IUnknown interface. This interface pointer can be used to call QueryInterface for IConsole2 and IConsoleNameSpace2.

Return value

This method can return one of these values.

Remarks

IComponentData::Initialize is called when a snap-in is created and has items to enumerate in the scope pane. The pointer to IUnknown that is passed in is used to make QueryInterface calls to the console for interfaces such as IConsole2 and IConsoleNamespace2. The snap-in should also call IConsole2::QueryScopeImageList to get the image list for the scope pane and add images to be displayed on the scope pane side.

Requirements

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

See also

IComponent

IComponentData

IConsole2