IComponentData::Initialize

[This is preliminary documentation and subject to change.]

Provides an entry point to the console.

HRESULT Initialize(
  LPUNKNOWN pUnknown  // Pointer to console's IUnknown.
);
 

Parameters

pUnknown
[in] Pointer to the console's IUnknown interface. This interface pointer can be used to call QueryInterface for IConsole and IConsoleNameSpace.

Return Values

S_OK
The component was successfully initialized.
E_UNEXPECTED
An unexpected error occurred.

Remarks

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

See Also

IComponent, IComponentData, IConsole