IAgileReference::Resolve method

Gets the interface ID of an agile reference to an object.

Syntax

HRESULT Resolve(
  [in]          REFIID riid,
  [out, retval] void   **ppvObjectReference
);

Parameters

riid [in]

The interface ID of the interface to be retrieved from the agile reference. It is not required to be the same as the registered interface.

ppvObjectReference [out, retval]

On successful completion, *ppvObjectReference is a pointer to the interface specified by riid.

Return value

This method can return one of these values.

Return value Description
S_OK
The method completed successfully.
E_NOINTERFACE
The requested interface isn't implemented on the registered object.

 

Remarks

Call the RoGetAgileReference function to create an agile reference to an object. Call the Resolve method to localize the object into the apartment in which Resolve is called.

Requirements

Requirement Value
Minimum supported client
Windows 8.1 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2012 R2 [desktop apps | UWP apps]

See also

IAgileReference

RoGetAgileReference