IConsoleNameSpace::GetItem

[This is preliminary documentation and subject to change.]

Enables the snap-in to retrieve some or all of a single scope item's attributes.

HRESULT GetItem(
  LPSCOPEDATAITEM item  // Pointer to a structure with item 
                        // information
);
 

Parameters

item
[in, out] 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 to retrieve information about 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 Values

S_OK
The attributes for the given item were successfully retrieved.
E_UNEXPECTED
An unexpected error occurred.

See Also

IConsoleNameSpace