dword dwregister;
// create the filter graph manager.
cocreateinstance(clsid_filtergraph, null, clsctx_inproc_server,
iid_igraphbuilder, (void **)&pgraph);
#ifdef _debug
hr = addtorot(pgraph, &dwregister);
#endif
// rest of the application (not shown).
#ifdef _debug
removefromrot(dwregister);
#endif
pgraph->release();
同时运行你的应用程序和graphedit,你就可以在graphedit中查看你应用程序中的filter graph了。在graphedit中,如下
图8
然后就出现了下面的对话框