Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.