Discussion:
Enumerating File Source (URL) Filter (CLSID_URLReader) on WinCE
(too old to reply)
rishi_bs
2008-07-07 11:12:00 UTC
Permalink
Hi all,

I am trying to instantiate File Source (URL) Filter filter on WinCE
5.0 device.
If I enumerate the filters using below code I am finding File Source
(Async) Filter. But I am not able to get URL source filter. Can
anybody tell me what catalog items should be added to OS Design to
include File Source (URL) Filter.


hr = CoCreateInstance(CLSID_FilterMapper,
NULL, CLSCTX_INPROC, IID_IFilterMapper,
(void **) &pMapper);


hr = pMapper->EnumMatchingFilters(
&pEnum,
MERIT_DO_NOT_USE + 1, // Minimum merit.
FALSE, // At least one input pin?
GUID_NULL,
GUID_NULL,
FALSE, // Must be a renderer?
TRUE, // At least one output pin?
MEDIATYPE_Stream,
MEDIASUBTYPE_NULL
);

// Enumerate the monikers.
REGFILTER *pMoniker;
ULONG cFetched;
while (1)
{
hr = pEnum->Next(1, &pMoniker, &cFetched);
printf("hr = %d \n", hr);

if(S_OK != hr)
break;

printf("Filter name : %S \n", pMoniker->Name);
}
drep
2008-07-07 11:25:10 UTC
Permalink
I think the URL filter has a merit of 0. So change MERIT_DO_NOT_USE + 1 to
0. Hope that helps,

drep



"rishi_bs" <***@gmail.com> wrote in message
news:a1f2c338-c4a3-4324-b8be-***@b1g2000hsg.googlegroups.com...
>
> Hi all,
>
> I am trying to instantiate File Source (URL) Filter filter on WinCE
> 5.0 device.
> If I enumerate the filters using below code I am finding File Source
> (Async) Filter. But I am not able to get URL source filter. Can
> anybody tell me what catalog items should be added to OS Design to
> include File Source (URL) Filter.
>
>
> hr = CoCreateInstance(CLSID_FilterMapper,
> NULL, CLSCTX_INPROC, IID_IFilterMapper,
> (void **) &pMapper);
>
>
> hr = pMapper->EnumMatchingFilters(
> &pEnum,
> MERIT_DO_NOT_USE + 1, // Minimum merit.
> FALSE, // At least one input pin?
> GUID_NULL,
> GUID_NULL,
> FALSE, // Must be a renderer?
> TRUE, // At least one output pin?
> MEDIATYPE_Stream,
> MEDIASUBTYPE_NULL
> );
>
> // Enumerate the monikers.
> REGFILTER *pMoniker;
> ULONG cFetched;
> while (1)
> {
> hr = pEnum->Next(1, &pMoniker, &cFetched);
> printf("hr = %d \n", hr);
>
> if(S_OK != hr)
> break;
>
> printf("Filter name : %S \n", pMoniker->Name);
> }
The March Hare [MVP]
2008-07-07 12:10:19 UTC
Permalink
On Mon, 7 Jul 2008 12:25:10 +0100, drep wrote:

> I think the URL filter has a merit of 0. So change MERIT_DO_NOT_USE + 1 to
> 0

It has merit of:

MERIT_UNLIKELY = 0x400000

on Windows. I don't know if is different on CE 5.0.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
rishi_bs
2008-07-08 04:16:04 UTC
Permalink
On Jul 7, 5:10 pm, "The March Hare [MVP]"
<***@alice.in.wonderland> wrote:
> On Mon, 7 Jul 2008 12:25:10 +0100, drep wrote:
> > I think the URL filter has a merit of 0. So change MERIT_DO_NOT_USE + 1 to
> > 0
>
> It has merit of:
>
> MERIT_UNLIKELY      = 0x400000
>
> on Windows.  I don't know if is different on CE 5.0.
>
> --
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution

Actually the URL filter is not registered in my WinCE setup.
And I am not aware of the OS image component that will register the
URL filter.
If anybody can give some info about the OS image components, that will
be helpful.
mohammad
2011-04-26 07:07:42 UTC
Permalink
rishi_bs wrote on 07/08/2008 00:16 ET
> On Jul 7, 5:10
rishi_bs
2008-07-08 08:36:35 UTC
Permalink
On Jul 7, 5:10 pm, "The March Hare [MVP]"
<***@alice.in.wonderland> wrote:
> On Mon, 7 Jul 2008 12:25:10 +0100, drep wrote:
> > I think the URL filter has a merit of 0. So change MERIT_DO_NOT_USE + 1 to
> > 0
>
> It has merit of:
>
> MERIT_UNLIKELY      = 0x400000
>
> on Windows.  I don't know if is different on CE 5.0.
>
> --
> Please read this before replying:
> 1. Dshow & posting help:  http://tmhare.mvps.org/help.htm
> 2. Trim & respond inline (please don't top post or snip everything)
> 3. Benefit others:  follow up if you are helped or you found a solution

Actually URL source filter is not registered in WinCE OS design I
have.
Can anyone tell me which OS image components are to be included to
resgister URL source filter.
Loading...