IResultOwnerData::SortItems method (mmc.h)

The IResultOwnerData::SortItems method sorts the items of a virtual result list.

Syntax

HRESULT SortItems(
  [in] int    nColumn,
  [in] DWORD  dwSortOptions,
  [in] LPARAM lUserParam
);

Parameters

[in] nColumn

An index of the column header clicked.

[in] dwSortOptions

The sort options to be used during the sort operation. This value can be a combination of the following:

RSI_DESCENDING = 0x0001

The sort should be in descending order. The default is to sort in ascending order.

RSI_NOSORTICON = 0x0002

Instructs MMC to remove the sort arrow icon. This option is useful when the snap-in performs a custom sort operation.

[in] lUserParam

A user parameter passed in an IResultData::Sort call, NULL if the user initiated the sort.

Return value

This method can return one of these values.

Remarks

Because the snap-in maintains all the item data storage for a virtual list, the list does not support sorting. The console calls this function when the user clicks the header item of a virtual list or when the snap-in calls IResultData::Sort.

MMC calls IResultOwnerData::SortItems with the same sort options that were passed by the snap-in in the call to IResultData::Sort.

Requirements

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

See also

IResultData::Sort