Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compare
Collapse the table of content
Expand the table of content

IShellItem::Compare method

Compares two IShellItem objects.

Syntax


HRESULT Compare(
   IShellItem *psi,
   SICHINTF   hint,
   int        *piOrder
);

Parameters

psi

Type: IShellItem*

A pointer to an IShellItem object to compare with the existing IShellItem object.

hint

Type: SICHINTF

One of the SICHINTF values that determines how to perform the comparison. See SICHINTF for the list of possible values for this parameter.

piOrder

Type: int*

This parameter receives the result of the comparison. If the two items are the same this parameter equals zero; if they are different the parameter is nonzero.

Return value

Type: HRESULT

Returns S_OK if the items are the same, S_FALSE if they are different, or an error value otherwise.

Remarks

The data type used in the second parameter, SICHINTF, is defined as:


typedef DWORD SICHINTF;

Requirements

Minimum supported client

Windows XP with SP1 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

DLL

Shell32.dll (version 6.0 or later)

See also

IShellItem
IShellFolder

 

 

Community Additions

ADD
Show:
© 2015 Microsoft