Implements::CanCastTo 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 Implements::CanCastTo Method.
Gets a pointer to the specified interface.
__forceinline HRESULT CanCastTo( REFIID riid, _Deref_out_ void **ppv );
Parameters
riid
A reference to an interface ID.
ppv
If successful, a pointer to the interface specified by riid.
S_OK if successful; otherwise, an HRESULT that indicates the error, such as E_NOINTERFACE.
This is an internal helper function that performs a QueryInterface operation.
Header: implements.h
Namespace: Microsoft::WRL
Show: