RDCOMPARE structure (mmc.h)

The RDCOMPARE structure is introduced in MMC 1.2.

The RDCOMPARE structure is used by the IResultDataCompareEx::Compare method for specifying information used for sorting scope and result items in the result pane of a primary snap-in.

Syntax

typedef struct _RDCOMPARE {
  DWORD     cbSize;
  DWORD     dwFlags;
  int       nColumn;
  LPARAM    lUserParam;
  RDITEMHDR *prdch1;
  RDITEMHDR *prdch2;
} RDCOMPARE;

Members

cbSize

Size of this structure.

dwFlags

Reserved. Always zero.

nColumn

Column being sorted.

lUserParam

A value that specifies user-provided information that is passed into IResultData::Sort. MMC does not interpret this parameter.

prdch1

A pointer to an RDITEMHDR structure that specifies the first item's type (scope or result) and cookie.

prdch2

A pointer to an RDITEMHDR structure that specifies the second item's type (scope or result) and cookie.

Remarks

If the snap-in implements the IResultDataCompareEx interface, MMC MMC allocates the parameters to the IResultDataCompareEx::Compare snap-in's method and then calls the method. MMC releases the parameters after the method returns.

Requirements

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

See also

IResultDataCompareEx::Compare

RDITEMHDR