Share via


ClassFactory::QueryInterface Method

Retrieves a pointer to the interface specified by parameter.

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

See Also

Reference

ClassFactory Class