Directshow开发的基本技巧[27]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 aoosang 的 blog

hresult enumfilters (ifiltergraph *pgraph)

{

    ienumfilters *penum = null;

    ibasefilter *pfilter;

    ulong cfetched;

    hresult hr = pgraph->enumfilters(&penum);

    if (failed(hr)) return hr;

    while(penum->next(1, &pfilter, &cfetched) == s_ok)

    {

        filter_info filterinfo;

        hr = pfilter->queryfilterinfo(&filterinfo);

        if (failed(hr))

        {

            messagebox(null, text("could not get the filter info"),

                text("error"), mb_ok | mb_iconerror);

            continue;  // maybe the next one will work.

        }

 

#ifdef unicode

        messagebox(null, filterinfo.achname, text("filter name"), mb_ok);

#else

        char szname[max_filter_name];

本文关键:Directshow开发的基本技巧
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top