Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

Part iii chapter introducing directshowstdapi cocreateinstance refclsid rclsid

296 Part III
Chapter 13: Introducing DirectShow

STDAPI CoCreateInstance(
REFCLSID rclsid,
LPUNKNOWN pUnkOuter,
DWORD dwClsContext,
REFIID riid,
LPVOID *ppv
);

LPVOID *ppv: Address where the specified interface is to be returned.

HRESULT InitDirectShow (HWND hWnd)
{
HRESULT hr = CoInitialize(NULL);
if (SUCCEEDED(hr))
{
hr = CoCreateInstance(CLSID_FilterGraph, NULL,
CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **)&pGraph); }
return hr;
}

hr = pGraph->QueryInterface(IID_IMediaControl, (void **)&pControl); }
return hr;
}

13.5 The Event Mechanism

The Media Player
How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELI9D7F7C6
img
Uploaded by :
A8pwpAnb
Page 1 Preview
part iii chapter introducing directshowstdapi cocr
Sell Your Old Documents & Earn Wallet Balance