Windows apps
Collapse the table of content
Expand the table of content
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.

WeakReference::Resolve Method

 

Supports the WRL infrastructure and is not intended to be used directly from your code.

  
STDMETHOD(Resolve)  
   (REFIID riid,   
   _Deref_out_opt_ IInspectable **ppvObject  
);  

Parameters

riid
An interface ID.

ppvObject
When this operation completes, a copy of the current strong reference if the strong reference count is nonzero.

  • S_OK if this operation is successful and the strong reference count is zero. The ppvObject parameter is set to nullptr.

  • S_OK if this operation is successful and the strong reference count is nonzero. The ppvObject parameter is set to the strong reference.

  • Otherwise, an HRESULT that indicates the reason this operation failed.

Sets the specified pointer to the current strong reference value if the strong reference count is nonzero.

Header: implements.h

Namespace: Microsoft::WRL::Details

WeakReference Class1
Microsoft::WRL::Details Namespace

Show:
© 2016 Microsoft