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.
Returns a ComPtr object that represents the interface identified by the specified interface ID.
WRL_NOTHROW HRESULT AsIID(
_Out_ ComPtr<IUnknown>* p
An interface ID.
If supported, a doubly-indirect pointer to the interface specified by the riid parameter; otherwise, a pointer to IUnknown.
S_OK if successful; otherwise, an HRESULT that indicates the error.