ComPtr::AsWeak Method
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at ComPtr::AsWeak Method.
Retrieves a weak reference to the current object.
HRESULT AsWeak( _Out_ WeakRef* pWeakRef );
Parameters
pWeakRef
When this operation completes, a pointer to a weak reference object.
S_OK if successful; otherwise, an HRESULT that indicates the error.
Header: client.h
Namespace: Microsoft::WRL
Show: