IResultData::GetItem method

The IResultData::GetItem method enables a user to retrieve the parameters of a single item.

Syntax


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

Parameters

item [in, out]

A pointer to a RESULTDATAITEM structure that contains information about the item whose parameters are being retrieved.

Return value

This method can return one of these values.

S_OK

The item was successfully retrieved.

E_UNEXPECTED

An unexpected error occurred.

E_INVALIDARG

The item parameter is NULL.

Remarks

The itemID member of the RESULTDATAITEM structure pointed to by the item parameter should be set to refer to the item or subitem for which information is being returned. The nCol member should be set to 0 (zero) because it is the only column in which anything can be obtained or set. In addition, the data members for each of the flags set in the mask member of the structure pointed to by the item parameter if this method call succeeds will be returned.

If itemID is 0 (zero), the nIndex member can be used.

When applied to virtual lists, you must use the nIndex member and set itemID to 0 (zero). For virtual lists you can only get the select and focus states of an item.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IResultData2
IResultData
IResultData::SetItem

 

 

Show: