Implements::CanCastTo Method
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.
Syntax
__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
.
Return Value
S_OK if successful; otherwise, an HRESULT that indicates the error, such as E_NOINTERFACE.
Remarks
This is an internal helper function that performs a QueryInterface operation.
Requirements
Header: implements.h
Namespace: Microsoft::WRL