IConsoleNameSpace::GetItem method (mmc.h)

The IConsoleNameSpace2::GetItem method enables the snap-in to retrieve some or all of a single scope item's attributes.

Syntax

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

Parameters

[in, out] item

A pointer to a SCOPEDATAITEM structure that specifies the information to retrieve and receives information about the item. When the message is sent, the ID member of the structure identifies the item and the mask member specifies the attributes to retrieve.

If mask specifies the SDI_STATE value, the nState member contains the item's state information.

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