Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IComponent::CompareObjects method

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

Syntax


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

Parameters

lpDataObjectA [in]

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

lpDataObjectB [in]

A pointer to the second 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.

Remarks

The IDataObject interface is documented in the Platform Software Development Kit (SDK).

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

IComponent
IComponentData
IConsole2

 

 

Show: