扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:陆其明 来源:hqtech 2007年10月20日
关键字:
// Create an instance of the DVD Graph Builder object. HRESULT hr; hr = CoCreateInstance(CLSID_DvdGraphBuilder, NULL, CLSCTX_INPROC_SERVER, IID_IDvdGraphBuilder, reinterpret_cast<void**>(&m_pIDvdGB)); // Build the DVD filter graph. AM_DVD_RENDERSTATUS buildStatus; hr = m_pIDvdGB->RenderDvdVideoVolume(pszwDiscPath, m_dwRenderFlags, &buildStatus); // Get the pointers to the DVD Navigator interfaces. hr = m_pIDvdGB->GetDvdInterface(IID_IDvdInfo2, reinterpret_cast<void**>(&m_pIDvdI2)); hr = m_pIDvdGB->GetDvdInterface(IID_IDvdControl2, reinterpret_cast<void**>(&m_pIDvdC2)); ... // Get a pointer to the filter graph manager. hr = m_pDvdGB->GetFiltergraph(&m_pGraph); ... // Use the graph pointer to get a pointer to IMediaControl, // for controlling the filter graph as a whole. hr = m_pGraph->QueryInterface(IID_IMediaControl, reinterpret_cast<void**>(&m_pIMC)); ... // Get a pointer to IMediaEventEx, // used for handling DVD and other filter graph events. hr = m_pGraph->QueryInterface(IID_IMediaEventEx, reinterpret_cast<void**>(&m_pME)); ... // Use the graph builder pointer again to get the IVideoWindow interface, // to set the window style and message-handling behavior of the video renderer filter. hr = m_pIDvdGB->GetDvdInterface(IID_IVideoWindow, reinterpret_cast<void**>(&m_pIVW)); hr = m_pDvdGB->GetDvdInterface(IID_IAMLine21Decoder, reinterpret_cast<void**>(&pL21Dec)); |
HRESULT hr = pDVDControl2->PlayTitle( uTitle, DVD_CMD_FLAG_None, // = 0 NULL); |
HRESULT hr = pDVDControl2->PlayTitle( uTitle, EC_DVD_CMD_FLAG_Block, NULL); |
IDvdCmd* pObj; HRESULT hr = pDVDControl2->PlayTitle(uTitle, 0, &pObj); if(SUCCEEDED(hr)) { pObj->WaitToEnd(); pObj->Release(); } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者