[This is preliminary documentation and subject to change.]
Returns a pointer to a specified interface on a component to which a client currently holds an interface pointer. This method must call IUnknown::AddRef on the pointer it returns.
This method is fully documented in the COM documentation in the Microsoft® Platform SDK and is only partially documented here for quick reference.
HRESULT QueryInterface(
REFIID iid,
void **ppvObject
);