ChainInterfaces::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 ChainInterfaces::CanCastTo Method.
Indicates whether the specified interface ID can be cast to each of the specializations defined by the non-default template parameters.
__forceinline bool CanCastTo( REFIID riid, _Deref_out_ void **ppv );
Parameters
riid
An interface ID.
ppv
A pointer to the last interface ID that was cast successfully.
true if all the cast operations succeeded; otherwise, false.
Header: implements.h
Namespace: Microsoft::WRL
Show: