hr = pGraph->QueryInterface(IID_IMediaControl, (void **)&pControl);
What returns (void **)&pControl?
QueryInterface()is one of three methods IUnknown, which is the basic root interface of all COM interfaces.
MSDN IUnknown::QueryInterface() , :
HRESULT QueryInterface(
[in] REFIID riid,
[out] void **ppvObject
);
ppvObject [out] , , riid. * ppvObject . , * ppvObject NULL.
, pControl IMediaControl, IID_IMediaControl.
, : void**.
void* " ".
, : " QueryInterface() a void*?"
, output. , QueryInterface() - , .
, C ( COM C-isms), , (*).
( ++ &.)
, void*, " ".
( *), : " output".
:
typedef void* PointerToAnything;
HRESULT QueryInterface(..., PointerToAnything* pSomeInterface);