IWeakReference::Resolve(REFIID,IInspectable**) method (weakreference.h)
Resolves a weak reference by returning a strong reference to the object.
Syntax
HRESULT Resolve(
REFIID riid,
IInspectable **objectReference
);
Parameters
riid
Type: REFIID
A reference to the interface identifier (IID) of the object.
objectReference
Type: IInspectable**
A strong reference to the 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, then IWeakReference::Resolve returns S_OK, but the objectReference parameter points to null.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | weakreference.h |