WeakReference::Resolve Method

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.
This topic has not yet been rated - Rate this topic
Visual Studio 2012

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

STDMETHOD(Resolve)
   (REFIID riid, 
   _Deref_out_opt_ IInspectable **ppvObject
);
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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.