IWeakReference::Resolve method
Resolves a weak reference by returning a strong reference to the specified object.
Syntax
HRESULT Resolve(
[in] REFIID riid,
[out, retval] IInspectable **objectReference
);
Parameters
- riid [in]
-
Type: REFIID
The reference ID of the specified object.
- objectReference [out, retval]
-
Type: IInspectable**
The strong reference to the specified object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If you try to resolve a weak reference to a strong reference for an object that is no longer available, IWeakReference::Resolve returns S_OK, but the objectReference parameter points to null.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
See also