IComponentData::CompareObjects method

The IComponentData::CompareObjects method enables a snap-in to compare two data objects acquired through QueryDataObject. Be aware that the data objects can be acquired from two different instances of IComponentData.

Syntax


HRESULT CompareObjects(
  [in] LPDATAOBJECT lpDataObjectA,
  [in] LPDATAOBJECT lpDataObjectB
);

Parameters

lpDataObjectA [in]

A pointer to the first data object exposing an IDataObject interface that is to be compared.

lpDataObjectB [in]

A pointer to the second data object exposing an IDataObject interface that is to be compared.

Return value

This method can return one of these values.

S_OK

The data objects represented by lpDataObjectA and lpDataObjectB are the same.

S_FALSE

The data objects represented by lpDataObjectA and lpDataObjectB are not the same.

E_UNEXPECTED

An unexpected error occurred.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

IComponent
IComponentData
IConsole2

 

 

Show: