IConsoleNameSpace::InsertItem method (mmc.h)

The IConsoleNameSpace2::InsertItem method enables the snap-in to insert a single item into the scope view.

Syntax

HRESULT InsertItem(
  [in, out] LPSCOPEDATAITEM item
);

Parameters

[in, out] item

A pointer to a SCOPEDATAITEM structure that specifies the attributes of the new scope item. On return, the ID member of the structure contains the item identifier assigned by MMC for the newly inserted item. Be aware that this value is the HSCOPEITEM handle of the inserted item. The snap-in should store this value in order to later manipulate the inserted item by calling methods such as IConsoleNameSpace2::GetItem.

Return value

This method can return one of these values.

Requirements

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

See also

IConsoleNameSpace

IConsoleNameSpace2