ClassFactory::QueryInterface 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 ClassFactory::QueryInterface Method.
Retrieves a pointer to the interface specified by parameter.
Syntax
STDMETHOD(
QueryInterface
)(REFIID riid, _Deref_out_ void **ppvObject);
Parameters
riid
An interface ID.
ppvObject
When this operation completes, a pointer to the interface specified by parameter riid
.
Return Value
S_OK if successful; otherwise, an HRESULT that describes the failure.
Requirements
Header: module.h
Namespace: Microsoft::WRL