IResultData::SetItem method

The IResultData::SetItem method enables the snap-in to set a single item in the result pane.

Syntax


HRESULT SetItem(
  [in] LPRESULTDATAITEM item
);

Parameters

item [in]

A pointer to a RESULTDATAITEM structure that contains information about the item to be changed.

Return value

This method can return one of these values.

S_OK

The item was successfully set.

E_UNEXPECTED

An unexpected error occurred.

E_INVALIDARG

The Item parameter is NULL.

Remarks

The itemID member of the structure pointed to by the item parameter should be set to refer to the item or subitem to be changed in the list. The mask and all appropriate associated fields in the RESULTDATAITEM structure should be filled out with the preferred changes. The nCol member should be set to 0 (zero) because it is the only column in which anything can be set or obtained. The str member of RESULTDATAITEM should always be set to MMC_CALLBACK.

This method does not support virtual lists.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IResultData
IResultData2
IResultData::GetItem

 

 

Show: